input_schema to validate dictionaries automatically.
Input Format Types
Using Pydantic Models
Pass a Pydantic model instance toinput:
ValidationError before the team runs.
Using input_schema
Set input_schema on the team to validate dictionaries automatically:
Handling Invalid Input
Invalid dictionary input raises aValueError wrapping the Pydantic error:
Common Patterns
Multi-Topic Research
Scoped Analysis
Nested Configuration
Related
- Agent Structured Input: Configure structured input for agents
- Team Structured Output: Get validated output from teams