Commit 02a8231
Address maintainer review: fix comment typo and add prefixItems test
1. **Fix comment typo in google.py (line 270)**:
- Changed `response_schema` to `response_json_schema` to match actual field usage
- Addresses DouweM's suggestion for accuracy
2. **Add test for prefixItems native support**:
- New test `test_google_prefix_items_native_output` verifies tuple types work natively
- Uses `tuple[float, float]` which generates `prefixItems` in JSON schema
- Confirms we no longer need the prefixItems → items conversion workaround
- Tests with NYC coordinates as a practical example
Note: Cassette will be recorded by CI or during maintainer review.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 36b2e38 commit 02a8231
File tree
2 files changed
+22
-1
lines changed- pydantic_ai_slim/pydantic_ai/models
- tests/models
2 files changed
+22
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
| 270 | + | |
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3297 | 3297 | | |
3298 | 3298 | | |
3299 | 3299 | | |
| 3300 | + | |
| 3301 | + | |
| 3302 | + | |
| 3303 | + | |
| 3304 | + | |
| 3305 | + | |
| 3306 | + | |
| 3307 | + | |
| 3308 | + | |
| 3309 | + | |
| 3310 | + | |
| 3311 | + | |
| 3312 | + | |
| 3313 | + | |
| 3314 | + | |
| 3315 | + | |
| 3316 | + | |
| 3317 | + | |
| 3318 | + | |
| 3319 | + | |
| 3320 | + | |
3300 | 3321 | | |
3301 | 3322 | | |
3302 | 3323 | | |
| |||
0 commit comments