Skip to main content
This example demonstrates Workflows 2.0 combining custom functions with agents and teams in a sequential execution pattern. This shows how to mix different component types for maximum flexibility in your workflow design. When to use: Linear processes where you need custom data preprocessing between AI agents, or when combining multiple component types (functions, agents, teams) in sequence.
sequence_of_functions_and_agents.py
This was a synchronous non-streaming example of this pattern. To checkout async and streaming versions, see the cookbooks-