Skip to main content

TaskFlowAI is a lightweight python framework for building LLM based pipelines and multi-agent teams

Project description

TaskFlowAI: Flexible Framework for LLM-Driven Pipelines and Multi-Agent Teams

TaskFlowAI is a lightweight and flexible framework designed for creating AI-driven task pipelines and workflows. It provides developers with a streamlined approach to building agentic systems without unnecessary abstractions or cognitive overhead.

Key Features

TaskFlowAI offers a modular architecture that is easy to build with, extend and integrate. It provides flexible workflow design capabilities, ranging from deterministic pipelines to fully autonomous multi-agent teams. The framework supports advanced tool assignment and usage, allowing for dynamic tool assignment and self-determined tool use by agents.

One of the standout features of TaskFlowAI is its diverse language model support, including integration with OpenAI, Anthropic, OpenRouter, and local models. It also comes with a comprehensive toolset that includes web interaction, file operations, embeddings generation, and more. Transparency and observability are prioritized through detailed logging and state exposure.

TaskFlowAI is designed with minimal dependencies, featuring a lightweight core with optional integrations. It also incorporates best practices such as structured prompt engineering and robust error handling.

Core Components

The framework is built around several core components. Tasks serve as discrete units of work, while Agents act as personas that perform tasks and can be assigned tools. Tools are wrappers around external services or specific functionalities. Language Model Interfaces provide a consistent interface for various LLM providers, ensuring seamless integration across different AI models.

Getting Started

  1. Install TaskFlowAI: pip install taskflowai
  2. Import necessary components:
    from taskflowai import Task, Agent, OllamaModels
    
    researcher_agent = Agent(
       role="web researcher",
       goal="use web search tool to find relevant Python agent repositories with open issues",
       attributes="analytical, detail-oriented, able to assess repository relevance and popularity",
       llm=OllamaModels.llama3,
       tools={WebTools.serper_search}
    )
    

def web_research_task(user_input): return Task.create( agent=researcher_agent, instruction=f"use web search tool to find and summarize information on '{user_input}'" )

user_input = input("Enter your search query: ") web_research_task(user_input)

3. Create your workflows by defining tasks, agents, and tools

## Examples

TaskFlowAI supports various use cases, from a simple agent system to complex multi-agent teams. Check out the documentation for detailed examples and usage patterns at taskflowai.org.

TaskFlowAI empowers developers to build sophisticated AI applications that can handle a wide range of tasks efficiently and effectively. Whether you're creating a simple chatbot or a complex multi-agent system, TaskFlowAI provides the building blocks and extensibility to bring your ideas to life.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

taskflowai-0.2.2.tar.gz (36.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

taskflowai-0.2.2-py3-none-any.whl (35.7 kB view details)

Uploaded Python 3

File details

Details for the file taskflowai-0.2.2.tar.gz.

File metadata

  • Download URL: taskflowai-0.2.2.tar.gz
  • Upload date:
  • Size: 36.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for taskflowai-0.2.2.tar.gz
Algorithm Hash digest
SHA256 05168133e729b8183da592a3b3c7369806385fdced1d22f79d5de52da8d1fed1
MD5 9c6f112114d3d7f9c56297d641d04e47
BLAKE2b-256 874c3090035260c3f534c7c7eb559fc1c45aaa8a68b9c368282fe97d3a1782df

See more details on using hashes here.

File details

Details for the file taskflowai-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: taskflowai-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 35.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for taskflowai-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1dd9332aa189f42e14f99d40f0674f25a5676adb0a317caddd31739b639f5222
MD5 e91aff327e21381ede79bb65d020ab5d
BLAKE2b-256 78334c07133f7a5c9a6cf5421eafee4983416cb93aad1b4815c48c5c2e5cadb9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page