Skip to main content
This example demonstrates how to use input_schema with teams for automatic input validation and structured data handling, allowing automatic validation and conversion of dictionary inputs into Pydantic models.

Code

cookbook/examples/teams/structured_input_output/06_input_schema_on_team.py

Usage

1

Create a virtual environment

Open the Terminal and create a python virtual environment.
2

Install required libraries

3

Set environment variables

4

Run the agent