v1.83.0
pydantic/pydantic-aiv1.83.0Apr 16, 2026by DouweM
AI Summary
Introduces Pydantic AI Harness Code Mode and adds support for xAI tools along with prompt caching capabilities for Bedrock and Anthropic models. This release significantly expands the ecosystem's capabilities.
Key Highlights
- Pydantic AI Harness is now live with Code Mode powered by Monty
- Add XSearchTool and FileSearch support for xAI
- Add Bedrock prompt cache TTL support
- Add Anthropic automatic prompt caching support
New Features
- Pydantic AI Harness Code Mode
- xAI tool support
- Bedrock prompt cache TTL
- Anthropic automatic prompt caching
Full Release Notes
<!-- Release notes generated using configuration in .github/release.yml at main --> ## 🤖 [Pydantic AI Harness](https://github.com/pydantic/pydantic-ai-harness) is now live with [**Code Mode**](https://github.com/pydantic/pydantic-ai-harness/tree/main/pydantic_ai_harness/code_mode) powered by [Monty](https://github.com/pydantic/monty)! ## What's Changed ### 🚀 Features * feat: Add `XSearchTool` and `FileSearch` support for xAI by @colesmcintosh in https://github.com/pydantic/pydantic-ai/pull/4165 * Allow injecting metadata per tool call with `FastMCPToolset` by @Boryotto in https://github.com/pydantic/pydantic-ai/pull/4929 * feat(bedrock): add prompt cache TTL support by @imdigitalashish in https://github.com/pydantic/pydantic-ai/pull/4581 * Add Anthropic automatic prompt caching support by @DenysMoskalenko in https://github.com/pydantic/pydantic-ai/pull/4840 * Add 'graceful' end strategy for parallel tool calls by @awkoy in https://github.com/pydantic/pydantic-ai/pull/4333 * Support Agent(output_type=str | None) for optional output by @Pavanmanikanta98 in https://github.com/pydantic/pydantic-ai/pull/4042 ## New Contributors * @colesmcintosh made their first contribution in https://github.com/pydantic/pydantic-ai/pull/4165 * @Boryotto made their first contribution in https://github.com/pydantic/pydantic-ai/pull/4929 * @imdigitalashish made their first contribution in https://github.com/pydantic/pydantic-ai/pull/4581 * @awkoy made their first contribution in https://github.com/pydantic/pydantic-ai/pull/4333 **Full Changelog**: https://github.com/pydantic/pydantic-ai/compare/v1.82.0...v1.83.0