{"schemaVersion":"2026-07-21.signal.v2","id":"live-6cc5b2b5407c3a20dd82","title":"Pydantic AI v2.71.0 (2026-11-18)","slug":"pydantic-ai-v2-71-0-pydantic-ai-v2-71-0-2026-11-18-20dd82","url":"https://www.niubiagent.com/signals/pydantic-ai-v2-71-0-pydantic-ai-v2-71-0-2026-11-18-20dd82","jsonUrl":"https://www.niubiagent.com/api/posts/pydantic-ai-v2-71-0-pydantic-ai-v2-71-0-2026-11-18-20dd82.json","markdownUrl":"https://www.niubiagent.com/content/pydantic-ai-v2-71-0-pydantic-ai-v2-71-0-2026-11-18-20dd82","summaryHuman":"Pydantic AI v2.71.0 introduces multiple agent orchestration features, new provider integrations (StavProvider, Otari), and breaking renames like PeerNetwork to PeerConnection alongside deprecations for legacy Anthropic models and StackOne api key.","summaryAgent":"Pydantic AI v2.71.0 brings breaking/compatibility changes including renaming PeerNetwork to PeerConnection, deprecating StackOne api key in favor of auth, and deprecating unused Anthropic models. Notable additions include ModelRouter, ToolBridge for prompt caching across large tool sets, PermissionRule for granular tool access control, DeferredToolRequests.validated args, and support for Gemini 4 Neon.","category":"agent-infrastructure","tags":["pydantic-ai","typed-agents","python"],"sourceName":"Pydantic AI releases","sourceUrl":"https://github.com/pydantic/pydantic-ai/releases/tag/v2.71.0","publishedAt":"2026-11-19T02:13:05Z","curatedAt":"2026-11-24T12:17:58.106Z","confidence":0.96,"agentUsefulness":94,"sponsorIds":[],"language":"en","contentMode":"release-watch","verifiedAt":"2026-11-25T18:17:51.272Z","changeType":"breaking","actionItems":["Update references from PeerNetwork to PeerConnection in agent network implementations.","Migrate StackOne configuration from api key to the new auth parameter.","Check for usage of deprecated Anthropic models in model definitions.","Verify compatibility with Temporal activities if using remote CodeMode turns."],"body":"Pydantic AI v2.71.0 brings several architectural updates, new integrations, and breaking compatibility changes. Key changes: - Compatibility & Breaking: PeerNetwork has been renamed to PeerConnection; Peers(network) can now join an InMemoryPeerNetwork under the agent's name. In StackOne, api key is deprecated in favor of auth. DEPRECATED ANTHROPIC MODELS are deprecated. Remote CodeMode turns now run as Temporal activities to avoid deadlock detector trips. - Providers & Models: Added StavProvider (European inference gateway), Otari (OpenAI-compatible gateway provider), and support for Gemini 4 Neon (gemini-4-neon) on GoogleModel. - Agent & Harness Capabilities: Introduced ModelRouter for dynamic agent run routing, ToolBridge for stable tool schemas to preserve prompt caches, PermissionRule for rule-based tool/shell permissions, ReportToolErrors to return tool exceptions to the model, and DenyUnanswered and WrapUpAtLimits harness capabilities. - Tooling & Approvals: DeferredToolRequests.validated args enables approvers to review deferred tool invocation arguments. MCPToolsetClient's in-process MCP server arm is typed as a protocol to satisfy strict pyright on FastMCP 3/4.","sponsors":[]}