Skip to main content
Set an output_schema on each agent to validate that step’s output as a Pydantic model. The workflow passes each result to the next step. This example moves from ResearchFindings to ContentStrategy to FinalContentPlan. Install dependencies:
structured_io_at_each_step_level_agent.py