Daily News · 1 min read

Pydantic AI Updates: July 18, 2026

1. Pydantic AI Ships v2.13.0 With Content Filter Errors and Cache Hit Ratio Metrics

Pydantic AI. Pydantic AI released v2.13.0, which adds a RaiseContentFilterError capability that turns non-empty content filter responses into raised errors, a cache_hit_ratio property on both RequestUsage and RunUsage for caching visibility, and an include_model_request_parameters instrumentation setting that lets teams omit the model_request_parameters span attribute. The release also introduces three new capability hooks, get_model, resolve_model_id, and for_agent, for deeper extensibility during model resolution and agent initialization. Bug fixes correct MistralModel streaming configuration, ensure open text, thinking, and tool-call components close cleanly when UI streaming errors, resolve spurious OpenTelemetry “Failed to detach context” errors on interrupted streamed runs, and repair pydantic_monty parameter passing inside Temporal workflow sandboxes. The MCP library dependency was bumped to 1.28.1 to address Dependabot security alerts. Source