Commit a0c6f00
committed
Extend conformance harness for tool_choice fixtures
Adds assert_tool_choice_absent matcher mirroring the existing
response_format_absent pattern, _build_tool_choice parser handling
both YAML shapes (string for the three modes, dict for the
ForceTool record form), and tool_choice passthrough on both call
sites (raises path and success path).
The expected_wire_request_checks dispatcher gains a
tool_choice_absent key for fixture 029's default case, where the
wire body MUST omit the field entirely (preserves pre-0025 caller
behavior — the OpenAI provider's own default applies).
LlmCallSpec uses _AllowExtras so tool_choice parses without an
explicit pydantic field; no fixture-parsing model changes needed.1 parent ea2e89e commit a0c6f00
3 files changed
Lines changed: 62 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
100 | 114 | | |
101 | 115 | | |
102 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| |||
200 | 203 | | |
201 | 204 | | |
202 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
203 | 230 | | |
204 | 231 | | |
205 | 232 | | |
| |||
265 | 292 | | |
266 | 293 | | |
267 | 294 | | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
268 | 298 | | |
269 | 299 | | |
270 | 300 | | |
| |||
468 | 498 | | |
469 | 499 | | |
470 | 500 | | |
| 501 | + | |
471 | 502 | | |
472 | 503 | | |
473 | 504 | | |
474 | | - | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
475 | 512 | | |
476 | 513 | | |
477 | 514 | | |
| |||
485 | 522 | | |
486 | 523 | | |
487 | 524 | | |
| 525 | + | |
488 | 526 | | |
489 | | - | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
490 | 534 | | |
491 | 535 | | |
492 | 536 | | |
| |||
0 commit comments