Orchestrate multi-step agent workflows with retry, input resolution, and parallel execution.
TaskFlow
is a flexible, agent-based orchestration utility designed for chaining and executing multiple AI agents in a structured, sequential, or parallel fashion.
It supports:
TaskFlow
is a powerful orchestration engine designed to coordinate multiple AI agents and tools in a structured sequence or parallel execution pattern. It enables complex LLM pipelines with dynamic input resolution, retries, and step-by-step control.
{{agent_name.key}}
{{input}}
: Original input{{agent_name.key}}
: Output from a specific agentstep()
now supports fine-grained execution control:
step_name
: Define a custom name for the step (useful for reusing agents).timeout
: Set a timeout in seconds for the step.on_start
, on_complete
, on_error
: Step-level hooks for better control and observability.condition
: A boolean-returning function to decide whether the step should run.depends_on
: Specify other steps that must complete before this one runs.{{summarizer.text}}
, you can now use the simplified {{summary}}
.
Use Case | Description |
---|---|
Research Bot | Search β summarize β report |
Support Assistant | Classify β fetch KB β reply |
Market Analysis | Scrape β analyze β visualize |
Workflow Engine | Multi-agent automation with retries |
TaskFlow
brings composability and robustness to AI-based systems. Use it to turn isolated agents into scalable intelligent workflows.