Skip to main content
Workflows provide robust error handling for production use.

Retry on failure

step = Step(
    agent=my_agent,
    max_retries=3,
    retry_delay=1.0
)

Error handling

from agno.workflow import OnError

step = Step(
    agent=my_agent,
    on_error=OnError.CONTINUE  # Or OnError.STOP
)

Fallback steps

workflow = Workflow(
    steps=[
        Step(
            agent=primary_agent,
            fallback=Step(agent=backup_agent)
        )
    ]
)
See API reference for complete documentation.

Build docs developers (and LLMs) love