Releases: pydantic/pydantic-ai
Releases · pydantic/pydantic-ai
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
v0.0.13 2024-12-16
Breaking changes
All releases prior to V1 can contain breaking changes according to semvar, but this release contains more than usual:
- The format of messages has changed significantly since the last release, see #232 and #259
- more messages/parts are added that before as a result of adding
ToolReturnPart
for each tool call, see #184 and #274 - given how much we've changed since the last release, other things have probably changed along the way
What's Changed
- Minor docs updates by @sydney-runkle in #159
- use sqlite for chat_app example by @samuelcolvin in #107
- Rename tool_id to tool_call_id by @dmontagu in #206
- upate docs to include remote server example by @cal859 in #210
- Add new llama-3.3-70b-versatile to GroqModelName by @kenjihikmatullah in #202
- Documentation: minor spelling and phrasing fixes by @carlsonp in #212
- Adding a minimal contributing guide by @sydney-runkle in #213
- Add note about jupyter workaround for conflicting event loops by @sydney-runkle in #214
- Standardize "py" -> "python" in code blocks with pre-commit by @sydney-runkle in #217
- Add Anthropic (non-streaming) Support by @sydney-runkle in #193
- fix double anthropic reference by @montasaurus in #222
- Add support for new Gemini model 'gemini-2.0-flash-exp' by @Etelis in #223
- Move description onto tool when appropriate by @samuelcolvin in #228
- fix formatting of
tests/test_tools.py
by @samuelcolvin in #229 - Move function tools docs to a new page by @samuelcolvin in #231
- added makefile help target by @janas-adam in #226
- [docs] update contributing guide to indicate minimum
uv
version by @zzstoatzz in #236 - Support tool calling when a structured result is provided by @jlowin in #184
- Basic
ModelSettings
logic by @sydney-runkle in #227 - Unify model responses by @dmontagu in #232
- Disable pyright reportUnnecessaryIsInstance by @dmontagu in #244
- pin ollama action by @samuelcolvin in #246
- Mistral Support by @YanSte in #173
- feat: add optional base_url kwarg to OpenAIModel by @sambarnes in #243
- Update install.md for Ollama by @Navanit-git in #225
- live tests for mistral by @samuelcolvin in #249
- Change: Internal Discriminator Modification by @sydney-runkle in #247
- add model documentation by @samuelcolvin in #250
- Formatting nitpicks in
messages.py
by @sydney-runkle in #255 - Get chat app working with new messages format by @sydney-runkle in #251
- Use
defer_build
with type adapters, not custom_LazyTypeAdapter
by @sydney-runkle in #253 - Use
isinstance
checks for message kinds by @sydney-runkle in #252 - add
messages
toRunContext
by @samuelcolvin in #257 - Reformat messages so messages become simple
list[ModelRequest | ModelResponse]
by @samuelcolvin in #259 - Fix typo in agent documentation example by @Viicos in #271
- Enhance Mistral: Improved Test Coverage, Code Optimization, and Bug Fixes by @YanSte in #263
- Streamed response messages by @samuelcolvin in #274
- Fix doc error in ollama.md by @asmith26 in #279
- Alternative intro by @samuelcolvin in #270
- uprev to v0.0.13 by @samuelcolvin in #280
New Contributors
- @sydney-runkle made their first contribution in #159
- @kenjihikmatullah made their first contribution in #202
- @carlsonp made their first contribution in #212
- @montasaurus made their first contribution in #222
- @Etelis made their first contribution in #223
- @janas-adam made their first contribution in #226
- @YanSte made their first contribution in #173
- @sambarnes made their first contribution in #243
- @Navanit-git made their first contribution in #225
- @Viicos made their first contribution in #271
- @asmith26 made their first contribution in #279
Full Changelog: v0.0.12...v0.0.13
v0.0.12 2024-12-09
What's Changed
- docs: update README.md by @eltociear in #165
- Dynamic tools by @samuelcolvin in #157
- fix validation errors serialization by @samuelcolvin in #176
- add note to docs about
.stream_text(delta=True)
by @samuelcolvin in #178 - Generate tool results when using structured result by @jlowin in #179
- fix
IndexError
when streamingOpenAI
by @samuelcolvin in #181 - Ollama support by @cal859 in #162
- add tests for Ollama by @samuelcolvin in #182
- uprev to v0.0.12 by @samuelcolvin in #185
New Contributors
- @eltociear made their first contribution in #165
- @jlowin made their first contribution in #179
- @cal859 made their first contribution in #162
Full Changelog: v0.0.11...v0.0.12
v0.0.11 2024-12-06
v0.0.10 2024-12-06
What's Changed
- Adding
Agent.name
by @samuelcolvin in #141 - Update
bank_support.py
-- fix docstring typo by @akgerber in #143 - Add help page to docs by @alexmojaki in #147
- uprev to v0.0.10, fix
logfire
optional group by @samuelcolvin in #154
New Contributors
- @akgerber made their first contribution in #143
- @alexmojaki made their first contribution in #147
Full Changelog: v0.0.9...v0.0.10