Skip to content

Glossary: Agent Tools and MCP

TypeAdapter

A Pydantic class that wraps any type, including a function, to validate data or produce its JSON Schema. It powers `to_tool` and `call`.

Where the book teaches it

Related terms

PydanticJSON Schema