input_schema to automatically validate dictionary inputs against a Pydantic model. This ensures type safety and data validation before the agent processes the request.
Code
input_schema_on_agent.py
Usage
1
Set up your virtual environment
2
Install dependencies
3
Export your OpenAI API key
4
Run Agent