Skip to main content
Tasks are units of work that agents execute. Each task has a description, expected output, and optional configuration for routing, retries, and advanced features.

Quick Start


Core Parameters

description is deprecated. Use action instead.

Task Dependencies

Use context to chain tasks:

Conditional Execution

Simple Condition (should_run)

When/Then/Else Routing


Loop Support

Iterate over a list:

Callbacks

Use on_task_complete for task completion notifications:
The callback parameter is deprecated. Use on_task_complete instead.

Guardrails

Validate task output before accepting:

Robustness Features


Output Configuration


Feature Configs

Enable advanced features per-task:

Task Types


Async Execution


Full Parameter Reference


Agents

Create and configure agents

AgentTeam

Orchestrate multiple agents

Callbacks

Task completion callbacks

Guardrails

Output validation