This release adds 3 notable features for engineering teams evaluating rollout.
Published 26d
AI Agents & Assistants
β No known CVEs patched
✓ No known CVEs patched in this version
Topics
agent-framework
genai
llm
pydantic
python
Summary
AI summaryUpdates π Bug Fixes, π Features, and feat across a mixed release.
Full changelog
What's Changed
π Features
- feat: add TwelveLabs Pegasus video-understanding example by @mohit-twelvelabs in https://github.com/pydantic/pydantic-ai/pull/6061
- Add Claude Sonnet 5 (
claude-sonnet-5) support by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/6161 - Allow factory functions as lifecycle arg for Dataset.evaluate by @nlsfnr in https://github.com/pydantic/pydantic-ai/pull/6107
- feat: Add prompt and completions cost fields to OpenRouter by @ali-corpo in https://github.com/pydantic/pydantic-ai/pull/4899
- feat: add
retry_optionsparameter toGoogleProviderby @graydeon in https://github.com/pydantic/pydantic-ai/pull/4966
π Bug Fixes
- Forward image
detailfromvendor_metadataforGroqModelandMistralModelby @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/6014 - fix(utils): run sync callbacks inline on Pyodide/emscripten by default by @syf2211 in https://github.com/pydantic/pydantic-ai/pull/6088
- Fix
group_by_temporalemitting first item alone when delayed past soft_max_interval by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/5947 - Fix missing
output_audio_tokensin usage accumulation by @jnMetaCode in https://github.com/pydantic/pydantic-ai/pull/4594 - fix(heroku): route model names through family profiles so thinking isn't dropped by @Bartok9 in https://github.com/pydantic/pydantic-ai/pull/6070
- Guard
TogetherProvider.model_profileagainst model names without a/by @immuhammadfurqan in https://github.com/pydantic/pydantic-ai/pull/6113 - fix(
GoogleModel): includeCodeExecutionToolininclude_server_side_tool_invocationscheck by @aarsh767 in https://github.com/pydantic/pydantic-ai/pull/6052 - fix(groq): surface reasoning_tokens in usage details by @tcconnally in https://github.com/pydantic/pydantic-ai/pull/5986
- Fix map
downstream_join_iddouble-firing the join on a non-empty iterable by @clavedeluna in https://github.com/pydantic/pydantic-ai/pull/6009 - fix: de-duplicate
output_audio_tokensaccumulation in_incr_usage_tokensby @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/6141 - Suppress
ClosedResourceErrorwhen cancelling a graph run mid-send by @conradlee in https://github.com/pydantic/pydantic-ai/pull/6149 - fix(ui): round-trip file
vendor_metadatathrough Vercel AI & AG-UI adapters by @Bartok9 in https://github.com/pydantic/pydantic-ai/pull/5790 - Handle CRLF markdown JSON fences in
strip_markdown_fencesby @CodingFeng101 in https://github.com/pydantic/pydantic-ai/pull/6090 - fix(heroku): avoid duplicating
/v1inbase_urlby @VectorPeak in https://github.com/pydantic/pydantic-ai/pull/6142 - Fix absolute
schema_pathhandling inDataset.to_fileby @VectorPeak in https://github.com/pydantic/pydantic-ai/pull/6143 - Fix
depsdeserialization in non-streaming Temporal model-request activity by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/5900
New Contributors
- @Iam-Mil made their first contribution in https://github.com/pydantic/pydantic-ai/pull/6132
- @jnMetaCode made their first contribution in https://github.com/pydantic/pydantic-ai/pull/4594
- @mohit-twelvelabs made their first contribution in https://github.com/pydantic/pydantic-ai/pull/6061
- @immuhammadfurqan made their first contribution in https://github.com/pydantic/pydantic-ai/pull/6113
- @aarsh767 made their first contribution in https://github.com/pydantic/pydantic-ai/pull/6052
- @tcconnally made their first contribution in https://github.com/pydantic/pydantic-ai/pull/5986
- @clavedeluna made their first contribution in https://github.com/pydantic/pydantic-ai/pull/6009
- @VectorPeak made their first contribution in https://github.com/pydantic/pydantic-ai/pull/6140
- @nlsfnr made their first contribution in https://github.com/pydantic/pydantic-ai/pull/6107
- @CodingFeng101 made their first contribution in https://github.com/pydantic/pydantic-ai/pull/6090
- @ali-corpo made their first contribution in https://github.com/pydantic/pydantic-ai/pull/4899
Full Changelog: https://github.com/pydantic/pydantic-ai/compare/v2.1.0...v2.2.0
Weekly OSS security release digest.
The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.
No spam, unsubscribe anytime.
Share this release
Related context
Related tools
Earlier breaking changes
- v1.95.0 rename βbuilt-in toolsβ to βnative toolsβ, deprecate old fields, register via capabilities=[NativeTool(...)]
Beta — feedback welcome: [email protected]