Commit f5a0a15
Update to v0.7.2 (#9)
* Add `priority` `service_tier` to `OpenAIModelSettings` and respect it in `OpenAIResponsesModel` (pydantic#2368)
* Add an example of using RunContext to pass data among tools (pydantic#2316)
Co-authored-by: Douwe Maan <[email protected]>
* Rename gemini-2.5-flash-lite-preview-06-17 to gemini-2.5-flash-lite as it's out of preview (pydantic#2387)
* Fix toggleable toolset example so toolset state is not shared across agent runs (pydantic#2396)
* Support custom thinking tags specified on the model profile (pydantic#2364)
Co-authored-by: jescudero <[email protected]>
Co-authored-by: Douwe Maan <[email protected]>
* Add convenience functions to handle AG-UI requests with request-specific deps (pydantic#2397)
* docs: add missing optional packages in `install.md` (pydantic#2412)
* Include default values in tool arguments JSON schema (pydantic#2418)
* Fix "test_download_item_no_content_type test fails on macOS" (pydantic#2404)
* Allow string format, pattern and others in OpenAI strict JSON mode (pydantic#2420)
* Let more `BaseModel`s use OpenAI strict JSON mode by defaulting to `additionalProperties=False` (pydantic#2419)
* BREAKING CHANGE: Change type of 'source' field on EvaluationResult (pydantic#2388)
Co-authored-by: Douwe Maan <[email protected]>
* Fix ImageUrl, VideoUrl, AudioUrl and DocumentUrl not being serializable (pydantic#2422)
* BREAKING CHANGE: Support printing reasons in the console output for pydantic-evals (pydantic#2163)
* Document performance implications of async vs sync tools (pydantic#2298)
Co-authored-by: Douwe Maan <[email protected]>
* Mention that tools become toolset internally (pydantic#2395)
Co-authored-by: Douwe Maan <[email protected]>
* Fix tests for Logfire>=3.22.0 (pydantic#2346)
* tests: speed up the test suite (pydantic#2414)
* google: add more information about schema on union (pydantic#2426)
* typo in output docs (pydantic#2427)
* Deprecate `GeminiModel` in favor of `GoogleModel` (pydantic#2416)
* Use `httpx` on `GoogleProvider` (pydantic#2438)
* Remove older deprecated models and add new model of Anthropic (pydantic#2435)
* Remove `next()` method from `Graph` (pydantic#2440)
* BREAKING CHANGE: Remove `data` from `FinalResult` (pydantic#2443)
* BREAKING CHANGE: Remove `get_data` and `validate_structured_result` from `StreamedRunResult` (pydantic#2445)
* docs: add `griffe_warnings_deprecated` (pydantic#2444)
* BREAKING CHANGE: Remove `format_as_xml` module (pydantic#2446)
* BREAKING CHANGE: Remove `result_type` parameter and similar from `Agent` (pydantic#2441)
* Deprecate `GoogleGLAProvider` and `GoogleVertexProvider` (pydantic#2450)
* BREAKING CHANGE: drop 4 months old deprecation warnings (pydantic#2451)
* Automatically use OpenAI strict mode for strict-compatible native output types (pydantic#2447)
* Make `InlineDefsJsonSchemaTransformer` public (pydantic#2455)
* Send `ThinkingPart`s back to Anthropic used through Bedrock (pydantic#2454)
* Bump boto3 to support `AWS_BEARER_TOKEN_BEDROCK` API key env var (pydantic#2456)
* Add new Heroku models (pydantic#2459)
* Add `builtin_tools` to `Agent` (pydantic#2102)
Co-authored-by: Marcelo Trylesinski <[email protected]>
Co-authored-by: Douwe Maan <[email protected]>
* Bump mcp-run-python (pydantic#2470)
* Remove fail_under from top-level coverage config so <100% html-coverage step doesn't end CI run (pydantic#2475)
* Add AbstractAgent, WrapperAgent, Agent.event_stream_handler, Toolset.id, Agent.override(tools=...) in preparation for Temporal (pydantic#2458)
* Let toolsets be built dynamically based on run context (pydantic#2366)
Co-authored-by: Douwe Maan <[email protected]>
* Add ToolsetFunc to API docs (fix CI) (pydantic#2486)
* tests: change time of evals example (pydantic#2501)
* ci: remove html and xml reports (pydantic#2491)
* fix: Add gpt-5 models to reasoning model detection for temperature parameter handling (pydantic#2483)
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Douwe Maan <[email protected]>
Co-authored-by: Marcelo Trylesinski <[email protected]>
* History processor replaces message history (pydantic#2324)
Co-authored-by: Marcelo Trylesinski <[email protected]>
* ci: split test suite (pydantic#2436)
Co-authored-by: Douwe Maan <[email protected]>
* ci: use the right install command (pydantic#2506)
* Update config.yaml (pydantic#2514)
* Skip testing flaky evals example (pydantic#2518)
* Fix error when parsing usage details for video without audio track in Google models (pydantic#2507)
* Make OpenAIResponsesModelSettings.openai_builtin_tools work again (pydantic#2520)
* Let Agent be run in a Temporal workflow by moving model requests, tool calls, and MCP to Temporal activities (pydantic#2225)
* Install only dev in CI (pydantic#2523)
* Improve CLAUDE.md (pydantic#2524)
* Add best practices regarding to coverage to CLAUDE.md (pydantic#2527)
* Add support for `"openai-responses"` model inference string (pydantic#2528)
Co-authored-by: Claude <[email protected]>
* docs: Confident AI (pydantic#2529)
* chore: mention what to do with the documentation when deprecating a class (pydantic#2530)
* chore: drop hyperlint (pydantic#2531)
* ci: improve matrix readability (pydantic#2532)
* Add pip to dev deps for PyCharm (pydantic#2533)
Co-authored-by: Marcelo Trylesinski <[email protected]>
* Add genai-prices to dev deps and a basic test (pydantic#2537)
* Add `--durations=100` to all pytest calls in CI (pydantic#2534)
* Cleanup snapshot in test_evaluate_async_logfire (pydantic#2538)
* Make some minor tweaks to the temporal docs (pydantic#2522)
Co-authored-by: Douwe Maan <[email protected]>
* Add new OpenAI GPT-5 models (pydantic#2503)
* Fix `FallbackModel` to respect each model's model settings (pydantic#2540)
* Add support for OpenAI verbosity parameter in Responses API (pydantic#2493)
Co-authored-by: Claude <[email protected]>
Co-authored-by: Douwe Maan <[email protected]>
* Add `UsageLimits.count_tokens_before_request` using Gemini `count_tokens` API (pydantic#2137)
Co-authored-by: Douwe Maan <[email protected]>
* chore: Fix uv.lock (pydantic#2546)
* Stop calling MCP server `get_tools` ahead of `agent run` span (pydantic#2545)
* Disable instrumentation by default in tests (pydantic#2535)
Co-authored-by: Marcelo Trylesinski <[email protected]>
* Only wrap necessary parts of type aliases in forward annotations (pydantic#2548)
* Remove anthropic-beta default header set in `AnthropicModel` (pydantic#2544)
Co-authored-by: Marcelo Trylesinski <[email protected]>
* docs: Clarify why AG-UI example links are on localhost (pydantic#2549)
* chore: Fix path to agent class in CLAUDE.md (pydantic#2550)
* Ignore leading whitespace when streaming from Qwen or DeepSeek (pydantic#2554)
* Ask model to try again if it produced a response without text or tool calls, only thinking (pydantic#2556)
Co-authored-by: Douwe Maan <[email protected]>
* chore: Improve Temporal test to check trace as tree instead of list (pydantic#2559)
* Fix: Forward max_uses parameter to Anthropic WebSearchTool (pydantic#2561)
* Let message history end on ModelResponse and execute pending tool calls (pydantic#2562)
* Fix type issues
* skip tests requiring API keys
* add `google-genai` dependency
* add other provider deps
* add pragma: no cover for untested logic
---------
Co-authored-by: akenar <[email protected]>
Co-authored-by: Tony Woland <[email protected]>
Co-authored-by: Douwe Maan <[email protected]>
Co-authored-by: Yi-Chen Lin <[email protected]>
Co-authored-by: José I. Escudero <[email protected]>
Co-authored-by: jescudero <[email protected]>
Co-authored-by: Marcelo Trylesinski <[email protected]>
Co-authored-by: William Easton <[email protected]>
Co-authored-by: David Montague <[email protected]>
Co-authored-by: Guillermo <[email protected]>
Co-authored-by: Hamza Farhan <[email protected]>
Co-authored-by: Mohamed Amine Zghal <[email protected]>
Co-authored-by: Yinon Ehrlich <[email protected]>
Co-authored-by: Matthew Brandman <[email protected]>
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Douwe Maan <[email protected]>
Co-authored-by: Alex Enrique <[email protected]>
Co-authored-by: Jerry Yan <[email protected]>
Co-authored-by: Claude <[email protected]>
Co-authored-by: Mayank <[email protected]>
Co-authored-by: Alex Hall <[email protected]>
Co-authored-by: Jerry Lin <[email protected]>
Co-authored-by: Raymond Xu <[email protected]>
Co-authored-by: kauabh <[email protected]>
Co-authored-by: Victorien <[email protected]>
Co-authored-by: Ethan Brooks <[email protected]>
Co-authored-by: eballesteros <[email protected]>1 parent 512ac55 commit f5a0a15
File tree
249 files changed
+23553
-5569
lines changed- .claude
- .github
- ISSUE_TEMPLATE
- workflows
- .hyperlint
- docs
- api
- models
- examples
- models
- examples
- pydantic_ai_examples
- mcp-run-python
- pydantic_ai_slim
- pydantic_ai
- agent
- durable_exec
- temporal
- ext
- models
- profiles
- providers
- toolsets
- pydantic_evals
- pydantic_evals
- evaluators
- otel
- reporting
- pydantic_graph
- pydantic_graph
- tests
- cassettes/test_temporal
- evals
- graph
- models
- cassettes
- test_anthropic
- test_bedrock
- test_google
- test_groq
- test_model_names
- test_openai_responses
- test_openai
- providers
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
249 files changed
+23553
-5569
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| |||
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| 111 | + | |
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
| |||
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
133 | | - | |
| 135 | + | |
134 | 136 | | |
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
138 | 140 | | |
139 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
140 | 149 | | |
141 | 150 | | |
142 | 151 | | |
| 152 | + | |
143 | 153 | | |
144 | 154 | | |
145 | 155 | | |
| |||
151 | 161 | | |
152 | 162 | | |
153 | 163 | | |
154 | | - | |
| 164 | + | |
155 | 165 | | |
156 | | - | |
157 | | - | |
| 166 | + | |
| 167 | + | |
158 | 168 | | |
159 | | - | |
| 169 | + | |
160 | 170 | | |
161 | | - | |
162 | | - | |
163 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
164 | 178 | | |
165 | | - | |
166 | | - | |
167 | | - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
168 | 193 | | |
169 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
170 | 197 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
177 | 209 | | |
178 | | - | |
| 210 | + | |
179 | 211 | | |
180 | 212 | | |
181 | 213 | | |
182 | 214 | | |
183 | | - | |
184 | | - | |
| 215 | + | |
| 216 | + | |
185 | 217 | | |
186 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
187 | 243 | | |
188 | 244 | | |
189 | | - | |
| 245 | + | |
190 | 246 | | |
191 | 247 | | |
192 | 248 | | |
| |||
197 | 253 | | |
198 | 254 | | |
199 | 255 | | |
200 | | - | |
| 256 | + | |
201 | 257 | | |
202 | 258 | | |
203 | 259 | | |
204 | 260 | | |
205 | 261 | | |
206 | | - | |
207 | | - | |
208 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
209 | 265 | | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | 266 | | |
| 267 | + | |
| 268 | + | |
232 | 269 | | |
233 | 270 | | |
234 | 271 | | |
| |||
256 | 293 | | |
257 | 294 | | |
258 | 295 | | |
259 | | - | |
| 296 | + | |
260 | 297 | | |
261 | 298 | | |
262 | 299 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 10 | + | |
| 11 | + | |
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
| 15 | + | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 20 | | |
26 | 21 | | |
27 | 22 | | |
28 | 23 | | |
29 | | - | |
| 24 | + | |
30 | 25 | | |
31 | 26 | | |
32 | 27 | | |
| |||
125 | 120 | | |
126 | 121 | | |
127 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | 67 | | |
71 | 68 | | |
72 | 69 | | |
| |||
0 commit comments