Releases: pydantic/pydantic-ai
Releases · pydantic/pydantic-ai
v1.37.0 (2025-12-19)
What's Changed
- Allow
TemporalAgentto switch model atagent.run-time by @mattbrandman in #3537 - Add
DynamicToolsetsupport in Temporal by @dsfaccini in #3682 - Add support for
ImageGenerationTooloutput_compressionandoutput_formatfor Vertex AI Gemini image models by @h0rv in #3759 - Update known Groq model names (add production/preview, remove deprecated) by @hima12-awny in #3774
- Add model profile flag for APIs that support native output but still require JSON schema in instructions by @xcpky in #3744
- Set
ToolRetryErrormessage by @jamesaud in #3718 - Fix
StreamedRunResult.get_output()creating duplicate messages ifstream_output()has already been called by @DouweM in #3777 - Re-add
clai --helpoutput to clai README by @dsfaccini in #3766
New Contributors
- @hima12-awny made their first contribution in #3774
- @jamesaud made their first contribution in #3718
Full Changelog: v1.36.0...v1.37.0
v1.36.0 (2025-12-18)
What's Changed
- Add AI SDK data chunk ID and tool approval types by @bendrucker in #3760
- Ensure
typefield when convertingconsttoenuminGoogleJsonSchemaTransformerby @majiayu000 in #3751 - Bump
google-genaito 1.56.0 by @petersli in #3770
New Contributors
- @majiayu000 made their first contribution in #3751
- @bendrucker made their first contribution in #3760
Full Changelog: v1.35.0...v1.36.0
v1.35.0 (2025-12-17)
What's Changed
- Add
FileSearchToolwith support for OpenAI and Google by @gorkachea in #3396 - Add support for
ImageGenerationTool.sizeto Gemini image models by @h0rv in #3720 - Adding Gemini 3 flash by @jhammarstedt in #3755
- Add Alibaba Cloud
DashScopeProviderand support audio input for Qwen Omni by @Pavanmanikanta98 in #3596 - Added support for AG-UI Multi-modal Messages by @bojan2501 in #3715
- Set timestamps on AG-UI events by @thejens in #3742
- Support OpenAI reasoning summary option 'auto' by @DouweM in #3753
- Operate on a deepcopy of
$defsinJsonSchemaTransformerinstead of the original schema by @thomasst in #3758 - Fix typing issue when using
UIAdapter.dispatch_requestwith agent withoutput_typeby @DouweM in #3749
New Contributors
- @h0rv made their first contribution in #3720
- @thejens made their first contribution in #3742
- @gorkachea made their first contribution in #3396
- @bojan2501 made their first contribution in #3715
- @thomasst made their first contribution in #3758
Full Changelog: v1.34.0...v1.35.0
v1.34.0 (2025-12-16)
What's Changed
- Add Web Chat UI for any agent that can be launched using
clai weborAgent.to_web()by @dsfaccini in #3456 - Support
FileUrl.force_downloadinAnthropicModelandOpenAIResponsesModelby @dsfaccini in #3694 - Fix using sync history processors, instructions functions, and output functions with
TemporalAgentby @dsfaccini in #3704 - Make
OpenRouterProviderandDeepSeekProvider__init__overloads less restrictive by @xcpky in #3739 - Bump min version of griffe to
1.14.0by @jerry-reevo in #3743
Full Changelog: v1.33.0...v1.34.0
v1.33.0 (2025-12-15)
What's Changed
- Pass
s3://file URLs directly to API inBedrockConverseModelby @mochow13 in #3663 - Insert agent
instructionsaftersystem_prompts for models that don't natively support instructions by @siddhantbhagat8 in #3614 - Bump google-genai to 1.55 by @dsfaccini in #3727
- docs: Update mkdocstrings-python to 2.x and fix cross-reference paths by @dsfaccini in #3706
New Contributors
- @siddhantbhagat8 made their first contribution in #3614
Full Changelog: v1.32.0...v1.33.0
v1.32.0 (2025-12-12)
What's Changed
- Add tool timeout support by @DEENUU1 in #3594
- Let
TemporalAgents be registered to a Temporal workflow using__pydantic_ai_agents__field by @adtyavrdhn in #3676 - Make
end_strategyalso work for output tools, not just tools by @Danipulok in #3523 - Replace OTel events with logs by @alexmojaki in #3641
- Fix
UIAdapter.dispatch_requesttyping by @dmontagu in #3721
New Contributors
Full Changelog: v1.31.0...v1.32.0
v1.31.0 (2025-12-11)
What's Changed
- Add prompt caching support for AWS Bedrock by @DenysMoskalenko in #3438
- Add
Agent.output_json_schema()method by @g-eoj in #3454 - Allow custom
clientInfowhen connecting to MCP servers by @atinylittleshell in #3572 - Add
provider_urltoModelResponseand use it incost()by @mahiro72 in #3648 - Add GPT-5.2 and bump openai to v2.11.0 by @DouweM in #3713
- Allow model to be a string in
LLMJudgeby @samuelcolvin in #3711 - Fix
OpenAIResponsesModelweb searchfind_in_pageaction handling by @DouweM in #3709
New Contributors
- @mahiro72 made their first contribution in #3648
- @atinylittleshell made their first contribution in #3572
Full Changelog: v1.30.0...v1.31.0
v1.30.1 (2025-12-11)
v1.30.0 (2025-12-10)
What's Changed
- Add prompt caching options to OpenAIChatModelSettings by @kichanyurd in #3678
- Support multi-modal output in
LLMJudgeby @Clement-Lelievre in #3696 - Add
CerebrasModelby @sebastiand-cerebras in #3486 - Fix
GraphBuildingErrorwhen usingg.streammultiple times by @adtyavrdhn in #3695 - Fix
BedrockConverseModelerror whenModelResponse.partsis empty by @ffineis in #3689 - Pin deno to v2.5.x by @DouweM in #3700
New Contributors
- @ffineis made their first contribution in #3689
- @sebastiand-cerebras made their first contribution in #3486
- @kichanyurd made their first contribution in #3678
- @Clement-Lelievre made their first contribution in #3696
Full Changelog: v1.29.0...v1.30.0
v1.29.0 (2025-12-09)
What's Changed
- Add support for aspect ratio in Gemini image generation by @mwildehahn and @ajac-zero in #3672
- Pass
container_idback to Anthropic API by @mattbrandman in #3637 - Upgrade temporalio to 1.20.0 by @akrivka in #3679
- Fix error when OpenRouter response includes file annotations by @dsfaccini in #3671
- Suppress broken resource errors if cancelling by @dmontagu in #3675
- Fix GoogleModel thinking signature not stored on tool calls when streaming by @jerry-heygen in #3647
- Don't require
anthropicdependency when using Anthropic model with other provider by @dsfaccini in #3652
New Contributors
Full Changelog: v1.28.0...v1.29.0