Daily News
· 1 min read
Pydantic AI Updates: August 7, 2026
1. Pydantic AI v2.26.0 Adds Tool Hiding and First-Party Run Cancellation
Pydantic AI. Pydantic AI released v2.26.0, a feature-heavy update that introduces tool hiding via search, load_capability, or ToolReturn.tools, plus first-party run cancellation through AgentRun.cancel() and RunContext.cancel(). The release also adds a Model.resolve_prompt_cache_retention() method, promotes run_stream_events() to a public AgentRunEvents handle, and extends coverage to DeepSeek V4 Flash via OpenAIResponsesModel and DeepSeekProvider. Accompanying fixes address model_id forwarding through WrapperModel, OpenRouter reasoning mapping, and compacted-window transmission, giving developers finer control over agent runtime behavior and cost. Source