{"schemaVersion":"2026-07-21.signal.v2","id":"live-2d3544d33da1a5a17b88","title":"Pydantic AI v2.77.0 (2026-11-27)","slug":"pydantic-ai-v2-77-0-pydantic-ai-v2-77-0-2026-11-27-a17b88","url":"https://www.niubiagent.com/signals/pydantic-ai-v2-77-0-pydantic-ai-v2-77-0-2026-11-27-a17b88","jsonUrl":"https://www.niubiagent.com/api/posts/pydantic-ai-v2-77-0-pydantic-ai-v2-77-0-2026-11-27-a17b88.json","markdownUrl":"https://www.niubiagent.com/content/pydantic-ai-v2-77-0-pydantic-ai-v2-77-0-2026-11-27-a17b88","summaryHuman":"Pydantic AI v2.77.0 brings breaking storage and streaming changes, introduces new ConversationStore backends (SQLite, Postgres, MongoDB), refactors authority checks for SubAgents, and updates history compaction behavior.","summaryAgent":"Pydantic AI v2.77.0 introduces breaking changes: SqliteConversationStore is renamed to SqliteSessionStore, AgentStreamEvent union adds CompactionStartEvent/CompactionEndEvent, and premature stream terminates now set response state='incomplete'. It also changes SubAgents loading rules based on authority, counts fallback subagent requests toward UsageLimits, places Memory/Planning context before the prompt, and alters…","category":"agent-infrastructure","tags":["pydantic-ai","typed-agents","python"],"sourceName":"Pydantic AI releases","sourceUrl":"https://github.com/pydantic/pydantic-ai/releases/tag/v2.77.0","publishedAt":"2026-11-27T23:32:31Z","curatedAt":"2026-11-28T00:17:49.826Z","confidence":0.96,"agentUsefulness":89,"sponsorIds":[],"language":"en","contentMode":"release-watch","verifiedAt":"2026-11-28T00:17:49.826Z","changeType":"breaking","actionItems":["Update imports referencing SqliteConversationStore and ConversationConflict to SqliteSessionStore and SessionConflict.","Update type-checking and exhaustive pattern matches (e.g., assert never) over AgentStreamEvent to account for CompactionStartEvent and CompactionEndEvent.","Update type-checking pattern matches over SkipReason to handle its new value.","Review stream termination logic: adjust checks expecting state == 'complete' or state != 'incomplete' to properly handle responses ending before provider terminal events."],"body":"Pydantic AI release v2.77.0 contains significant architectural updates and compatibility adjustments across several core systems: - Persistence & Stores: Adds SQLite, Postgres, and MongoDB backends for ConversationStore. Renames SqliteConversationStore and ConversationConflict in the Pax session-browser store to SqliteSessionStore and SessionConflict, with deprecation warnings on the old names. - Skills: Skills without missing directories now skips unreadable or missing library paths with warnings rather than failing (override with missing directories='error'). SkipReason has a new enum value. - Streaming & Compaction: RunContext.request compaction() and compact history() introduce CompactionStartEvent and CompactionEndEvent to the AgentStreamEvent union. Streamed responses from Anthropic, Google, or OpenAI that end before a provider terminal event now return state='incomplete'. - SubAgents & Authority: SubAgents skips definition files loaded below 'operator' authority. Working directory delegate workspaces are restricted to the parent directory's lowest authority. In-flight durable runs using SubAgents must finish before upgrading due to realpath recording changes. - Usage Limits: XSearch and ImageGeneration fallback subagent requests and tokens now count against the run's UsageLimits. - Prompt & Message Structure: Memory and Planning run-start context are placed before user prompts inside the initial ModelRequest. Compaction receipts are now sent as CompactionReceiptPart instead of UserPromptPart. Unified thinking displays summarized thinking for Anthropic and Claude on…","sponsors":[]}