python Pydantic AI Releases · · 2.12.0

pydantic-ai v2.12.0: New AI model, enhanced event handling

sdkaiengineerpython-agentic
feature patch

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

Read the original announcement →

https://github.com/pydantic/pydantic-ai/releases/tag/v2.12.0

Related releases