# Pydantic AI v2.71.0 renames PeerNetwork and adds gateway providers and harness controls

published: 2026-11-19T03:05:26.828Z
topic: frameworks
source: https://github.com/pydantic/pydantic-ai/releases/tag/v2.71.0
url: https://aiagentnews.io/stories/pydantic-ai-v2-71-0-renames-peernetwork-and-adds-gateway-providers-and-harness

Pydantic AI released v2.71.0 on 18 November 2026, with compatibility changes to peer networks and the StackOne MCP auth option. The release also adds the Stav and Otari gateway providers, Gemini 4 Neon support, and several harness capabilities for budgets, tool permissions and verification.

Pydantic AI published v2.71.0 on its GitHub releases page, dated 18 November 2026. The release renames PeerNetwork to PeerConnection and lets Peers join an InMemoryPeerNetwork under the agent's name. StackOne now takes auth, which deprecates the api_key option, and DEPRECATED_ANTHROPIC_MODELS is deprecated because the library no longer uses it.

New providers are StavProvider for the Stav European inference gateway and Otari as an OpenAI-compatible gateway. Gemini 4 Neon (gemini-4-neon) is supported on GoogleModel, and a new anthropic_previous_message_id setting covers Anthropic message threads. The harness gains ToolBridge, Goal, ReportRemainingBudget, RequireVerification and PermissionRule, which allows, asks about or denies tool calls by rule.

Bug fixes cover Anthropic streams with zero-argument MCP tool calls, Bedrock and Groq error classification, and a lost Sprite create in SpritesSandboxBackend, which is now sent again. Provider HTTP 408 responses are now raised as ModelTimeoutError. The changelog lists further fixes and new contributors.

## Why it matters if you build agents

Code that imports PeerNetwork, passes api_key to StackOne, or relies on DEPRECATED_ANTHROPIC_MODELS will need updating. Agents that call large or changing tool sets can use ToolBridge to keep the tool list fixed for prompt caching. Budget reporting, permission rules and verification checks give more control over runs without custom code.
