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.
By Balaji ChippadaBalaji Chippada

Read the full story
Originally published by Balaji Chippada on Nov 10, 2026.
Comments
Sign in to join the discussion.