pydantic-ai v2.12.0: New AI model, enhanced event handling
Pydantic-ai v2.12.0 introduces support for the Moonshot AI kimi-k3 model, expanding integration options for developers. The release also includes enhancements to event emission for enqueued messages and new event types for deferred tool calls, providing more granular control over agent execution flows. Several bug fixes address serialization issues, tool binding, and streamed output handling, improving the reliability of AI agent interactions.
- →Add Moonshot AI kimi-k3 model by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/6551
- →Emit EnqueuedMessagesEvent when enqueued messages are delivered into the run by @DouweM in https://github.com/pydantic/pydantic-ai/pull/6256
- →Fix tool binding for POSITIONAL_OR_KEYWORD params with *args by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/6541
Features (3) ›
- Add Moonshot AI kimi-k3 model by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/6551
- Emit EnqueuedMessagesEvent when enqueued messages are delivered into the run by @DouweM in https://github.com/pydantic/pydantic-ai/pull/6256
- feat
add DeferredToolCallEvent and DeferredToolResultEvent to AgentStreamEvent by @YHallouard in https://github.com/pydantic/pydantic-ai/pull/5588
Fixes (5) ›
Fix ToolReturnPart serialization to use field aliases so wire output matches return_schema by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/6543
- Fix tool binding for POSITIONAL_OR_KEYWORD params with *args by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/6541
fix(mistral): defer streamed output emission when text ends mid-integer-token by @Mukller in https://github.com/pydantic/pydantic-ai/pull/6519
Derive capability-contributed toolset id from the capability for durable execution by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/6408
Fix GoogleModel per-Part media_resolution forwarding in vendor_metadata by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/6525
https://github.com/pydantic/pydantic-ai/releases/tag/v2.12.0
Related releases
- OpenAI Agents Python v0.18.3: Bug Fixes and Enhancements OpenAI Agents SDK (Python) Releases ·
- crewAI 1.15.3: TUI flows, execution hooks, and bug fixes CrewAI Releases ·
- pydantic-ai v2.11.0 adds exportable history and bug fixes Pydantic AI Releases ·
- pydantic-ai v2.10.0: Tool pairing, OpenAI/Anthropic support, bug fixes Pydantic AI Releases ·
- Pydantic-AI v2.9.0: Security fix, GPT-5.6 models, usage command Pydantic AI Releases ·
- LangGraph 1.2.7: Fixes for delta overwrites and UUID generation LangGraph Releases ·