Learn more about Agno Workflows and why they can be really useful to build a multi-agent system
Input Type | Example | Use Case |
---|---|---|
String | "Analyze AI trends" | Simple text prompts |
Pydantic Model | ResearchRequest(topic="AI", depth=5) | Type-safe structured input |
List | ["AI", "ML", "LLMs"] | Multiple items to process |
Dictionary | {"query": "AI", "sources": ["web", "academic"]} | Key-value pairs |
Agent
or Team
, it will be serialized to a string before being passed to the agent or team.Workflow
class is the top-level orchestrator that manages the entire execution process.Step
is the fundamental unit of work in the workflow system. Each step encapsulates exactly one executor
- either an Agent
, a Team
, or a custom Python function. This design ensures clarity and maintainability while preserving the individual characteristics of each executor.Loop
is a construct that allows you to execute one or more steps multiple times. This is useful when you need to repeat a set of steps until a certain condition is met.Parallel
is a construct that allows you to execute one or more steps in parallel. This is useful when you need to execute a set of steps concurrently with the outputs joined together.Condition
makes a step conditional based on criteria you specify.Router
allows you to specify which step(s) to execute next, effectively creating branching logic in your workflow.StepInput
and StepOutput
provides standardized interfaces for data flow between steps: