You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/changelog.md
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,13 @@ See [#1248](https://github.com/pydantic/pydantic-ai/pull/1248) — the attribute
18
18
19
19
See [#1484](https://github.com/pydantic/pydantic-ai/pull/1484) — `format_as_xml` was moved and made available to import from the package root, e.g. `from pydantic_ai import format_as_xml`.
20
20
21
+
### v0.2.0 (2025-05-12)
22
+
23
+
See [#1647](https://github.com/pydantic/pydantic-ai/pull/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:
24
+
25
+
* Adds `usage` to `ModelResponse` (field has a default factory of `Usage()` so it'll work to load data that doesn't have usage)
26
+
* changes the return type of `Model.request` to just `ModelResponse` instead of `tuple[ModelResponse, Usage]`
0 commit comments