Releases: pydantic/pydantic-ai
Releases ยท pydantic/pydantic-ai
v0.2.1 (2025-05-13)
What's Changed
- Add AWS Profile Feature by @prescod in #1634
- Change Agent.is_?_node() to use TypeIs instead by @chasewalden in #1622
- Add newline separation between Anthropic system prompts by @timesler in #1638
- cli: store prompt and config under
~/.pydantic-ai
by @Kludex in #1701 - otel: send
BinaryContent
information by @Kludex in #1603
New Contributors
- @prescod made their first contribution in #1634
- @chasewalden made their first contribution in #1622
Full Changelog: v0.2.0...v0.2.1
v0.2.0 (2025-05-12)
Breaking Changes
See #1647 โ usage makes sense as part of ModelResponse
, and could be really useful in "messages" (really a sequence of requests and response). In this PR:
- Adds
usage
toModelResponse
(field has a default factory ofUsage()
so it'll work to load data that doesn't have usage) - changes the return type of
Model.request
to justModelResponse
instead oftuple[ModelResponse, Usage]
Other Changes
- Add support for non-string enums in Gemini by @zaidhaan in #1564
- Fix parallel tool calls on Bedrock with Nova and Claude models by @pandersen-uncharted in #1656
- Fix Anthropic streaming by @samuelcolvin in #1686
- Fix serializability of ModelRequestParameters by @dmontagu in #1690
- Stop incorrectly treating side-by-side JSON schema $refs as recursion by @DouweM in #1697
- Set
ToolCallPartDelta.tool_call_id
when known from previous delta by @DouweM in #1694
New Contributors
Full Changelog: v0.1.11...v0.2.0
v0.1.11 (2025-05-10)
v0.1.10 (2025-05-06)
What's Changed
- Allow setting
temperature
to 0 onBedrockConverseModel
by @pandersen-uncharted in #1631 - Add
extra_headers
toModelSettings
by @ramanan-ravi in #1644 - Add
thinking_config
toGeminiModel
by @Kludex in #1609
New Contributors
- @pandersen-uncharted made their first contribution in #1631
- @ramanan-ravi made their first contribution in #1644
Full Changelog: v0.1.9...v0.1.10
v0.1.9 (2025-05-02)
What's Changed
- Use the correct discriminator string in
HandleResponseEvent
by @DouweM in #1619 - Handle multi-modal and error responses from MCP tool calls by @DouweM in #1618
- Store additional usage details from Anthropic by @timesler in #1549
- Add
base_url
to Mistral Provider by @alibeyram in #1617
New Contributors
- @derluke made their first contribution in #1240
- @alibeyram made their first contribution in #1617
- @damyantilev made their first contribution in #1630
Full Changelog: v0.1.8...v0.1.9
v0.1.8 (2025-04-28)
What's Changed
Full Changelog: v0.1.7...v0.1.8
v0.1.7 (2025-04-28)
What's Changed
- Allow multiple instructions and fix instruction concatenation in Agent by @HamzaFarhan in #1591
- Fix OpenAI AudioUrl by @alexmojaki in #1594
- Gemini Video Support by @kylesf in #1584
- Set
use_attribute_docstrings=True
by default on tools by @Kludex in #1605 - Copy context to new thread for sync tool calls by @tboser in #1576
- Record agent run attributes in case of streaming and exception by @alexmojaki in #1610
New Contributors
- @kylesf made their first contribution in #1584
- @angelol made their first contribution in #1578
- @tboser made their first contribution in #1576
Full Changelog: v0.1.6...v0.1.7
v0.1.6 (2025-04-25)
What's Changed
Full Changelog: v0.1.5...v0.1.6
v0.1.5 (2025-04-25)
What's Changed
Full Changelog: v0.1.4...v0.1.5
v0.1.4 (2025-04-24)
What's Changed
- Use
report_case_name
in span by @alexmojaki in #1544 - Make agent and graph runs serializable again by @dmontagu in #1545
- support MCP logging, increase minimum mcp version to 1.6.0 by @samuelcolvin in #1436
- Add support for o3 and o4-mini by @zachmayer in #1557
- OpenAI: Enable DocumentUrl and BinaryContent documents by @gearheart in #1552
- gemini: move
list
type inside theAnnotated
onfunction_declarations
field by @gitraffe in #1570 - Replaced incorrect all_message() with new_messages() by @ag14774 in #1566
New Contributors
- @zachmayer made their first contribution in #1557
- @gearheart made their first contribution in #1552
- @gitraffe made their first contribution in #1570
- @ag14774 made their first contribution in #1566
Full Changelog: v0.1.3...v0.1.4