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
- google/adk-python v2.6.1: Telemetry enhancements and bug fixes Google ADK (Python) Releases ·
- crewAI 1.15.10 Patch Release CrewAI Releases ·
- LangGraph checkpoint-postgres 3.1.1 update LangGraph Releases ·
- LangGraph checkpoint-sqlite 3.1.1 released LangGraph Releases ·
- adk-python adds async non-blocking tool support Google ADK (Python) Releases ·
- Google ADK Python v2.6.0 adds features, fixes Google ADK (Python) Releases ·