Learn more about Mintlify
Enter your email to receive updates about new features and product releases.
Handle failures and retries in workflows
step = Step(
agent=my_agent,
max_retries=3,
retry_delay=1.0
)
from agno.workflow import OnError
step = Step(
agent=my_agent,
on_error=OnError.CONTINUE # Or OnError.STOP
)
workflow = Workflow(
steps=[
Step(
agent=primary_agent,
fallback=Step(agent=backup_agent)
)
]
)