Expand description
Deterministic workflow agent primitives.
These composable agents orchestrate sub-agents without LLM calls:
SequentialAgent: runs agents in order, piping output as inputParallelAgent: runs agents concurrently viatokio::JoinSetLoopAgent: repeats a single agent until a condition is met
Structs§
- Loop
Agent - Runs a single agent in a loop. Stops when
should_stopreturnstrueon the output text, or whenmax_iterationsis reached. Returns the final iteration’s output with accumulatedTokenUsage. - Loop
Agent Builder - Builder for
LoopAgent. - Parallel
Agent - Runs multiple sub-agents concurrently via
tokio::JoinSet. All agents receive the same input task. Returns merged results with accumulatedTokenUsage. - Parallel
Agent Builder - Builder for
ParallelAgent. - Sequential
Agent - Runs a list of sub-agents in order. Each agent receives the previous
agent’s text output as its task input. Returns the final agent’s output
with accumulated
TokenUsage. - Sequential
Agent Builder - Builder for
SequentialAgent.
Enums§
- Workflow
Router - Routes execution to one of the workflow agent types. Allows config-driven workflow selection without hardcoding the type.
- Workflow
Type - Identifies which workflow pattern to use.