Pydantic vs JSON Schema: Control Your LLM Tools
Pydantic tool schemas: create_agent builds each tool's JSON schema from your function's type hints and docstring. It usually works, but you can't see or control it, which is why you define schemas yourself with Pydantic.
Balaji Chippada