Releases: pydantic/pydantic-ai
Releases · pydantic/pydantic-ai
v0.2.15 (2025-06-05)
What's Changed
Full Changelog: v0.2.14...v0.2.15
v0.2.14 (2025-06-03)
What's Changed
Full Changelog: v0.2.13...v0.2.14
v0.2.13 (2025-06-03)
What's Changed
- Make parallel_evaluation_example more robust by @DouweM in #1861
- Ensure tool call parts with custom argument model validation errors are serializable by @DouweM in #1862
- Add option to pass expected output to LLMJudge by @hinnefe2 in #1853
- Fix unexpected part error when Google model returns empty text delta by @Blue9 in #1875
- Generate ToolCallPart.tool_call_id when OpenAI-compatible API returned an empty string by @DouweM in #1892
- docs: Fix import for BaseModel in graph example code by @briann in #1894
- Add new _GeminiThoughtPart to adhere to Gemini response by @dnouri in #1897
New Contributors
- @hinnefe2 made their first contribution in #1853
- @Blue9 made their first contribution in #1875
- @briann made their first contribution in #1894
- @dnouri made their first contribution in #1897
Full Changelog: v0.2.12...v0.2.13
v0.2.12 (2025-05-29)
What's Changed
- Add
vendor_id
andvendor_details.finish_reason
to Gemini/Google model responses by @davide-andreoli in #1800 - Fix units of
sse_read_timeout
timedelta
by @alexmojaki in #1843 - Support functions as
output_type
, as well as lists of functions and other types by @DouweM in #1785 - Enhance Gemini usage tracking to collect comprehensive token data by @kiqaps in #1752
- docs: add scope when loading credentials from file in google by @Kludex in #1850
- Add support for Claude 4 Sonnet and Opus models in Bedrock by @samtin0x in #1838
- Add
ModelProfile
to let model-specific behaviors be configured independent of the model class by @DouweM in #1835 - Add new provider classes for Together AI, Fireworks AI, and Grok with automatic model profile selection by @DouweM in #1842
- Fix weather agent example with UI by @vp777 in #1851
New Contributors
- @davide-andreoli made their first contribution in #1800
- @samtin0x made their first contribution in #1838
- @vp777 made their first contribution in #1851
Full Changelog: v0.2.11...v0.2.12
v0.2.11 (2025-05-27)
What's Changed
- Require
mcp>=1.9.0
on thepydantic-ai-slim[mcp]
extra by @DouweM in #1840 - Don't send empty messages to Anthropic by @oscar-broman in #1027
New Contributors
- @oscar-broman made their first contribution in #1027
Full Changelog: v0.2.10...v0.2.11
v0.2.10 (2025-05-27)
What's Changed
- Update Google models by @Kludex in #1829
- Support Claude Sonnet 4 by @Kludex in #1824
- Add support for MCP's Streamable HTTP transport by @BrandonShar in #1716
- Timeout for initializing MCP client by @alexmojaki in #1833
New Contributors
- @BrandonShar made their first contribution in #1716
Full Changelog: v0.2.9...v0.2.10
v0.2.9 (2025-05-26)
What's Changed
- Cast non-textual responses in
Agent.to_cli
tostr
by @barp in #1823 - Support field
labels
forGeminiModel
andGoogleModel
on Vertex AI by @vricciardulli in #1056
New Contributors
Full Changelog: v0.2.8...v0.2.9
v0.2.8 (2025-05-25)
v0.2.7 (2025-05-24)
What's Changed
- Support streaming tool calls from models that pass args as None when there are no function parameters by @DouweM in #1802
- Stream tool calls and structured output from Anthropic as it's received instead of in one go by @DouweM in #1669
- Remove hardcoded
n
parameter from OpenAIModel requests by @kiqaps in #1807 - Add
tool_prefix
option to MCP servers and error on conflicting tool names by @Wh1isper in #1266 - Allow
RunContext
to not be documented whenrequire_parameter_descriptions=True
as it's not passed to the model anyway by @Kevsnz in #1750 - Clean up dataclasses reprs by @dmontagu in #1812
- Addition: Make
prog_name
customizable by @fswair in #1804 - Use
AsyncBeta
instead ofAsyncAnthropic
by @Kludex in #1818
New Contributors
- @kiqaps made their first contribution in #1807
- @Kevsnz made their first contribution in #1750
- @fswair made their first contribution in #1804
Full Changelog: v0.2.6...v0.2.7
v0.2.6 (2025-05-20)
What's Changed
- Add
prepare_tools
param to Agent class by @rmaceissoft in #1474 - fix: remove forgotten print on
GoogleModel
by @Kludex in #1780 - fasta2a: be more strict on agent card by @Kludex in #1781
- fix: rename
prepare_tools
to_prepare_tools
by @Kludex in #1789 - fix: create prompt history file when using
Agent.to_cli()
by @Kludex in #1791 - fix: add
'openrouter'
string toOpenAIModel
provider param by @Kludex in #1792
New Contributors
- @rmaceissoft made their first contribution in #1474
Full Changelog: v0.2.5...v0.2.6