This release adds 3 notable features for engineering teams evaluating rollout.
Published 24d
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 π¦ Dependencies across a mixed release.
Full changelog
What's Changed
π Features
- Split
preserve_file_dataintoallow_uploaded_files(inbound security) and an AG-UI representation opt-in by @DouweM in https://github.com/pydantic/pydantic-ai/pull/6232 - Add
GEvalevaluator and standard quality metric rubrics forLLMJudgeby @dmontagu in https://github.com/pydantic/pydantic-ai/pull/5129 - Add agentic span-based evaluators (ToolCorrectness, TrajectoryMatch, ArgumentCorrectness, MaxToolCalls, MaxModelRequests) by @dmontagu in https://github.com/pydantic/pydantic-ai/pull/5130
π Bug Fixes
- fix(xai): update
XSearchToolhandle limit by @gyx09212214-prog in https://github.com/pydantic/pydantic-ai/pull/5979 - Handle None metadata in Gradio weather agent example by @hramezani in https://github.com/pydantic/pydantic-ai/pull/6214
- fix(mistral): preserve extended usage fields from API response by @felipebridge in https://github.com/pydantic/pydantic-ai/pull/5693
- Avoid mutable default argument in
process_tool_callsby @kratos0718 in https://github.com/pydantic/pydantic-ai/pull/6189 - feat: forward
WebSearchTool.user_locationto xAI web search by @manan-tech in https://github.com/pydantic/pydantic-ai/pull/6181 - Clean up the pending task and streams on
KeyboardInterruptin synchronousrun_until_completewrappers by @DouweM in https://github.com/pydantic/pydantic-ai/pull/6198 - fix(tool-search): drop redundant
descriptionfromToolSearchMatchby @serozhenka in https://github.com/pydantic/pydantic-ai/pull/5654 - fix(temporal): pass through genai_prices and httpx2 for workflow cost() by @syf2211 in https://github.com/pydantic/pydantic-ai/pull/6219
- fix(evals): reject non-positive
max_concurrencyby @VectorPeak in https://github.com/pydantic/pydantic-ai/pull/6228 - Lazy-start
run_stream_events()background task on first event iteration by @DouweM in https://github.com/pydantic/pydantic-ai/pull/6234
π¦ Dependencies
- Bump
genai-pricesto >=0.0.69 by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/6212
New Contributors
- @raullenchai made their first contribution in https://github.com/pydantic/pydantic-ai/pull/5008
- @gyx09212214-prog made their first contribution in https://github.com/pydantic/pydantic-ai/pull/5979
- @felipebridge made their first contribution in https://github.com/pydantic/pydantic-ai/pull/5693
- @kratos0718 made their first contribution in https://github.com/pydantic/pydantic-ai/pull/6189
- @serozhenka made their first contribution in https://github.com/pydantic/pydantic-ai/pull/5654
Full Changelog: https://github.com/pydantic/pydantic-ai/compare/v2.3.0...v2.4.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]