Skip to main content
Demonstrates type-safe data flow between agents/teams/custom python functions. Each step:
  1. Receives structured (pydantic model, list, dict or raw string) input
  2. Produces structured output (e.g., ResearchFindings, ContentStrategy)
You can also use this pattern to create a custom function that can be used in any step and you can-
  1. Inspect incoming data types (raw strings or Pydantic models).
  2. Analyze structured outputs from previous steps.
  3. Generate reports while preserving type safety.
structured_io_at_each_step_level_agent.py