Releases: pydantic/pydantic-ai
Releases · pydantic/pydantic-ai
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
v0.0.9 2024-12-04
What's Changed
- readme improvements by @samuelcolvin in #109
- Fix typo:
nee
->need
by @patrick91 in #111 - Update README.md to make the comment fitted in screen by @hramezani in #115
- add
.vscode/
to.gitignore
by @zzstoatzz in #113 - fix formatting of api docs by @samuelcolvin in #117
- add missing popovers to evals by @samuelcolvin in #119
- Fix run sync by @samuelcolvin in #124
- allow adding tools via
Agent(tools_[...])
by @samuelcolvin in #128 - allow tools to return any by @samuelcolvin in #136
- uprev to 0.0.9 by @samuelcolvin in #137
New Contributors
- @patrick91 made their first contribution in #111
- @hramezani made their first contribution in #115
- @zzstoatzz made their first contribution in #113
Full Changelog: v0.0.8...v0.0.9
v0.0.8 2024-12-02
What's Changed
- stop ignoring some D linting errors by @samuelcolvin in #105
- Logfire docs by @samuelcolvin in #106
- add readme by @samuelcolvin in #108
Full Changelog: v0.0.7...v0.0.8
v0.0.7 2024-11-29
What's Changed
- fix numerous typos by @samuelcolvin in #95
- Rename
retreiver
totool
by @samuelcolvin in #96 - fix broken links and add type checking function by @samuelcolvin in #97
- Install setup by @samuelcolvin in #98
- adding docs for testing and evals by @samuelcolvin in #99
- evals docs by @samuelcolvin in #100
- rename
CallContext
->RunContext
by @samuelcolvin in #101 - improvements to docs index by @samuelcolvin in #102
- test with
pydantic-ai-slim
only by @samuelcolvin in #103 - uprev to v0.0.7 by @samuelcolvin in #104
Full Changelog: v0.0.6...v0.0.7
v0.0.6 2024-11-25
What's Changed
- Fix docs CI? by @samuelcolvin in #87
- Add vertex AI by @samuelcolvin in #85
- add Groq client support by @ricklamers in #84
- fix
test-live
by @samuelcolvin in #90 - Support VertexAI models in
infer_model
by @samuelcolvin in #89 - Make openai optional by @samuelcolvin in #91
- Uv workspaces and
pydantic-ai-slim
by @samuelcolvin in #92 - uprev to v0.0.6 by @samuelcolvin in #94
New Contributors
- @ricklamers made their first contribution in #84
Full Changelog: v0.0.5...v0.0.6