v1.78.0
pydantic/pydantic-aiv1.78.0Apr 8, 2026by DouweM
AI Summary
Adds observability features for OpenTelemetry and expands tool definition capabilities with new metadata and schema attributes. This enhances tracing and tool introspection.
Key Highlights
- Add cached token span attributes per OTel spec
- Add `return_schema` and `function_signature` to ToolDefinition
- Add `SetToolMetadata` capability
New Features
- OTel token span attributes
- ToolDefinition schema additions
- SetToolMetadata capability
Full Release Notes
<!-- Release notes generated using configuration in .github/release.yml at main --> ## What's Changed ### 🚀 Features * Add cached token span attributes per OTel spec by @alexmojaki in https://github.com/pydantic/pydantic-ai/pull/5013 * feat: add `return_schema` and `function_signature` to `ToolDefinition` by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/4964 * feat: add `SetToolMetadata` capability by @DouweM in https://github.com/pydantic/pydantic-ai/pull/4964 ## New Contributors * @Ricardo-M-L made their first contribution in https://github.com/pydantic/pydantic-ai/pull/4968 * @chernistry made their first contribution in https://github.com/pydantic/pydantic-ai/pull/5005 * @vladdoster made their first contribution in https://github.com/pydantic/pydantic-ai/pull/4620 * @edmcman made their first contribution in https://github.com/pydantic/pydantic-ai/pull/4584 * @drPod made their first contribution in https://github.com/pydantic/pydantic-ai/pull/4809 * @1Ninad made their first contribution in https://github.com/pydantic/pydantic-ai/pull/4945 **Full Changelog**: https://github.com/pydantic/pydantic-ai/compare/v1.77.0...v1.78.0