Releases: pydantic/pydantic-ai
Releases · pydantic/pydantic-ai
v0.0.23 2025-02-07
What's Changed
- Fix error in evals example by @samuelcolvin in #852
- Add
o3
support forOpenAIModel
by @sydney-runkle in #853 - Remove the
AgentModel
class by @dmontagu in #800 - Support
reasoning_effort
param forOpenAIModel
by @sydney-runkle in #854 - Fix OpenAI env var tests following by @samuelcolvin in #855
- Replace search UI with Algolia backed one by @petyosi in #845
- Add support for gemini safety settings by @dAIsySHEng1 in #790
- Fix: missing graph extra by @mplemay in #863
- Remove unnecessary
project_id == creds_id
check for vertexai by @sydney-runkle in #862 - Using
model_name
andsystem
model properties by @sydney-runkle in #865
New Contributors
Full Changelog: v0.0.22...v0.0.23
v0.0.22 2025-02-04
What's Changed
- Port
pydantic_ai.Agent
to usingpydantic_graph
by @dmontagu in #725 - PR previews by @samuelcolvin in #815
- Various docs improvements by @sydney-runkle in #809
- Adding new gemini experimental models by @sydney-runkle in #811
- Various minor fixes by @dmontagu in #834
- Build docs for python<3.12 by @samuelcolvin in #841
- Weather Agent Sample: Only include
tool_call_id
to chatbot.append if it's set by @chug2k in #771 - Support locally served models which do not require an api key by @mikeedjones in #814
New Contributors
- @chug2k made their first contribution in #771
- @mikeedjones made their first contribution in #814
Full Changelog: v0.0.21...v0.0.22
v0.0.21 2025-01-30
What's Changed
- Update index.md by @kauabh in #759
- Add codespell support (config, workflow to detect/not fix) and make it fix few typos by @yarikoptic in #757
- Ensure custom args are used when retried by @jlowin in #692
- update
AgentDeps
refs toAgentDepsT
by @zzstoatzz in #767 - Adding subclasses of
ModelSettings
to support specialized model requests by @sydney-runkle in #766 - Remove
_utils.Either
by @dmontagu in #768 - Remove ArgsDict and ArgsJson by @dmontagu in #769
- Fix typo in Google VertexAIModel documentation (mkdocs) by @chris-dare in #772
- Fix CI by removing references to shutdown groq models by @dmontagu in #780
- Updated Docs by @kauabh in #773
- Clean up known model names by @dmontagu in #781
- Update Function tools docs with usage of
docstring_format
andrequire_parameter_descriptions
by @chris-dare in #776 - Disable running gemini tests in test_live.py by @dmontagu in #788
- Update graph.md by @kauabh in #791
- Minor clean up in preparation of graph agent by @dmontagu in #779
- Fix o1 usage with tool calls by @sydney-runkle in #764
- added documentation to visualize a graph within a jupyter-notebook by @jonathanbouchet in #786
- Remove
OllamaModel
in favor of usage withOpenAIModel
by @sydney-runkle in #805 - Docs fix: use model provider prefix in all examples by @sydney-runkle in #806
- Add
Cohere
docs and additional (live) tests by @sydney-runkle in #810 - uprev to 0.0.21 by @samuelcolvin in #813
New Contributors
- @kauabh made their first contribution in #759
- @yarikoptic made their first contribution in #757
- @chris-dare made their first contribution in #772
- @jonathanbouchet made their first contribution in #786
Full Changelog: v0.0.20...v0.0.21
v0.0.20 2025-01-23
What's Changed
- Add missing
allow_model_requests
check by @YanSte in #697 - Improve Algolia indexing by @petyosi in #721
- Add support for Cohere models by @rafidka in #203
- Add
model_name
toModelResponse
by @sydney-runkle in #701 - Adding
'deepseek-r1'
to the list of Ollama Model Names by @izzyacademy in #735 - Test minimum versions by @samuelcolvin in #743
- Fix handling of OpenAI system prompts in order to support
o1
by @sydney-runkle in #740 - Removing
from_text
andfrom_tool_call
utilities that complicate snapshot testing by @sydney-runkle in #744 - Add support for controlling direction of state diagram generated by Mermaid code by @izzyacademy in #716
- Increase default
IsNow()
delta by @dmontagu in #746 - Auto-use the
set_event_loop
fixture by @dmontagu in #747 - Make non-required parameters not required by @dmontagu in #742
- Improve variance of classes by @dmontagu in #726
- Support
parallel_tool_calls
inModelSettings
by @sydney-runkle in #750 - Add support for
user
role system promptso1-preview-2024-09-12
by @siavashg in #754 - Anthropic streaming support by @piercefreeman in #684
- Fix an issue with retry counting by @dmontagu in #749
New Contributors
- @rafidka made their first contribution in #203
- @hrahmadi71 made their first contribution in #753
- @siavashg made their first contribution in #754
- @piercefreeman made their first contribution in #684
Full Changelog: v0.0.19...v0.0.20
v0.0.19 2025-01-15
What's Changed
- Docs: add
asyncio
to all examples that need it. by @ME-Msc in #638 - fix: typo by @hwong557 in #641
- Add Gradio Demo for weather agent example by @freddyaboulton in #230
- Docs: fix freeze frame for gradio demo video by @sydney-runkle in #644
- Support
docstring_format
andrequire_parameter_descriptions
on tools by @sydney-runkle in #643 - Generate llms.txt by @petyosi in #649
- Refactor streaming by @dmontagu in #468
- Adds
phi4
to Ollama by @josead in #668 - Use Algolia for docs search by @petyosi in #669
- Fix agent
run
/run_sync
docs by @KranthiGV in #688 - docs: fix typos in
testing-evals
and RAG example by @lealre in #694 - Graph Support by @samuelcolvin in #528
- Upgrade "inline-snapshot" by @samuelcolvin in #657
- uprev to v0.0.19 by @samuelcolvin in #696
New Contributors
- @ME-Msc made their first contribution in #638
- @hwong557 made their first contribution in #641
- @freddyaboulton made their first contribution in #230
- @petyosi made their first contribution in #649
- @KranthiGV made their first contribution in #688
Full Changelog: v0.0.18...v0.0.19
v0.0.18 2025-01-07
What's Changed
- Added docs contribution docs, a troubleshooting item for docs changes by @andrewdmalone in #600
- Improve null handling for Gemini by @dmontagu in #608
- Improve string format handling for gemini by @dmontagu in #609
- Suppress griffe logging related to return type by @dmontagu in #606
- readme links by @samuelcolvin in #622
- Docs: Add screenshot for chat-app example. by @hengoren in #612
- docs: add OpenAI-compatible models section for Grok (xAI) and DeepSeek by @imfing in #613
- add diff coverage check by @samuelcolvin in #623
- set
UV_FROZEN
globally in CI by @samuelcolvin in #626 - Adds
dynamic
tosystem_prompt
decorator, allowing reevaluation by @josead in #560 - Use
--reinstall
instead of uninstall/install for docs insiders packages by @T-256 in #627 - Custom
result_type
on a run by @samuelcolvin in #629 - Prefix all models with provider for consistency by @sydney-runkle in #593
- prepare for v0.0.18 by @samuelcolvin in #635
New Contributors
- @hengoren made their first contribution in #612
- @josead made their first contribution in #560
- @T-256 made their first contribution in #627
Full Changelog: v0.0.17...v0.0.18
v0.0.17 2025-01-03
What's Changed
- Multi-agent application documentation by @samuelcolvin in #541
- Added troubleshooting section to the docs page by @andrewdmalone in #583
- GCP VertexAI: pass explicit
scope
togoogle.auth.default()
by @jtbaker in #579 - Docs fix - remove unnecessary line in multi agent docs by @sydney-runkle in #588
- Fix parallel Gemini function calls by @montasaurus in #585
- Add troubleshooting docs by @dAIsySHEng1 in #584
- Docs fix - change to pydantic-ai.git on contributing page by @dAIsySHEng1 in #590
AgentDeps
default toNone
. by @samuelcolvin in #592- added support for formatting examples by @abhishekvarma12345 in #515
- fix: update module name and include devtools as dev dependency for example scripts by @w121211 in #597
- uprev to 0.0.17 by @samuelcolvin in #604
New Contributors
- @andrewdmalone made their first contribution in #583
- @jtbaker made their first contribution in #579
- @dAIsySHEng1 made their first contribution in #584
- @abhishekvarma12345 made their first contribution in #515
- @w121211 made their first contribution in #597
Full Changelog: v0.0.16...v0.0.17
v0.0.16 2024-12-30
What's Changed
- multi-agent usage by @samuelcolvin in #538
- support
X | None = None
with Gemini by @samuelcolvin in #540 - Link to diff in version warning by @samuelcolvin in #542
- fix docs icons by @samuelcolvin in #549
- Use Griffe's public API by @pawamoy in #550
- Clean
chat_app
example by @DurandA in #553 - Gemini empty text by @samuelcolvin in #568
- correct chat app ordering by @samuelcolvin in #569
- Add Ollama API Key Configuration Support by @ruanwz in #566
- extend
RunContext
by @samuelcolvin in #570 - Make
capture_run_messages
support nested agent calls by @samuelcolvin in #573 - Ensure
TestModel
handles result retries correctly by @jlowin in #572 - uprev to v0.0.16 by @samuelcolvin in #574
New Contributors
Full Changelog: v0.0.15...v0.0.16
v0.0.15 2024-12-23
What's Changed
- docs: fix typo in pydantic link for /api/models/gemini/ by @lealre in #506
- Prioritize tool calls over eager text responses by @sydney-runkle in #505
- add a default to
ResultData
, some related cleanup by @samuelcolvin in #512 - Fix typo in type checking note by @juanfiguera in #518
- docs: fix typo in
Agents
page by @lealre in #521 - Adding commentary and tests re heterogenous behavior by @sydney-runkle in #517
- fix settings docs formatting by @samuelcolvin in #524
- Add warning about being ahead of release by @samuelcolvin in #525
- Reorganize examples by @dmontagu in #507
- tweak warning rendering by @samuelcolvin in #526
- Remove
last_run_messages
, addcapture_run_messages
by @samuelcolvin in #536 - Mistral optimised by @YanSte in #396
- prepare for v0.0.15 by @samuelcolvin in #537
New Contributors
- @lealre made their first contribution in #506
- @juanfiguera made their first contribution in #518
Full Changelog: v0.0.14...v0.0.15
v0.0.14 2024-12-19
What's Changed
- Fix
ModelMessage
discriminator in chat_app example by @DurandA in #402 - Ignore empty text parts by @samuelcolvin in #466
- Rename
Cost
toUsage
by @dmontagu in #403 - Add support for usage limits by @dmontagu in #409
- Fix error when getting messages from DB in chat_app example by @DurandA in #488
- Docs: add grids, tables to make intro info easier to digest by @sydney-runkle in #276
- Add
openai:o1
model support by @sydney-runkle in #498 - Use
RunContext
more widely by @samuelcolvin in #500 - Make args handling more robust by @dmontagu in #489
New Contributors
- @imfing made their first contribution in #281
- @DurandA made their first contribution in #402
- @Kludex made their first contribution in #467
Full Changelog: v0.0.13...v0.0.14