Source: github.com/pydantic/pydantic-ai/releases/tag/v2.77.0
The v2.77.0 release of pydantic-ai, dated 2026-11-27, adds SQLite, Postgres and MongoDB backends for ConversationStore. It adds a compact_history() capability hook, RunContext.request_compaction() and compaction stream events, which are emitted only when compaction is requested or a hook exists. A thinking_summary setting returns readable thinking across providers.
Several changes affect existing code. Skills(...) now skips missing or unreadable libraries by default unless missing_directories='error' is passed. Memory and Planning run-start context now sits inside the user prompt's ModelRequest, and compaction receipts are sent as CompactionReceiptPart instead of UserPromptPart.
Other changes count fallback subagent requests toward UsageLimits and raise ModelRequestRejectedError before OpenAIChatModel sends tools to GPT-5.4 and GPT-5.6 models with reasoning on. Stdio MCP servers started by plain agent.run() calls now stop when the agent and toolset go out of scope. The Pax Logfire default service name changed to pydantic-ai-pax.
Why it matters if you build agents
Agent builders who rely on Skills behavior, message history shape or exception types should check their code before upgrading.
Code that catches ModelHTTPError for GPT-5.4 or GPT-5.6 reasoning requests, or that reads compaction receipts as UserPromptPart, will need changes.
Fallback subagent calls now count toward the run's limits, so a run near its request limit may now raise UsageLimitExceeded.
Get stories like this every weekday
One short email with the day's agent tooling news.