Commit 0e6e808
authored
Remove the `function` property from tool calls in mocked model
responses.
`openai-agents` commit `a776d80` broke our test suite because instances of `ResponseFunctionToolCall` are now serialized inside `openai-agents`. As
we attach a non-serializable `MagicMock` as the `function` attribute to the
instances, our test suite faced an unhandled exception starting with
`openai-agents` version 0.6.0.
The model `ResponseFunctionToolCall` does not declare a function field.
Closes #5124
1 parent c63e8d8 commit 0e6e808
File tree
5 files changed
+6
-26
lines changed- scripts/populate_tox
- tests/integrations/openai_agents
5 files changed
+6
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
289 | 288 | | |
290 | 289 | | |
291 | 290 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | 297 | | |
301 | 298 | | |
302 | 299 | | |
| |||
377 | 374 | | |
378 | 375 | | |
379 | 376 | | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | 377 | | |
384 | 378 | | |
385 | 379 | | |
| |||
507 | 501 | | |
508 | 502 | | |
509 | 503 | | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
| 504 | + | |
515 | 505 | | |
516 | 506 | | |
517 | 507 | | |
| |||
520 | 510 | | |
521 | 511 | | |
522 | 512 | | |
523 | | - | |
524 | 513 | | |
525 | 514 | | |
526 | 515 | | |
| |||
559 | 548 | | |
560 | 549 | | |
561 | 550 | | |
562 | | - | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | | - | |
| 551 | + | |
567 | 552 | | |
568 | 553 | | |
569 | 554 | | |
| |||
586 | 571 | | |
587 | 572 | | |
588 | 573 | | |
589 | | - | |
590 | 574 | | |
591 | 575 | | |
592 | 576 | | |
| |||
1165 | 1149 | | |
1166 | 1150 | | |
1167 | 1151 | | |
1168 | | - | |
1169 | | - | |
1170 | | - | |
1171 | 1152 | | |
1172 | 1153 | | |
1173 | 1154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
456 | | - | |
| 456 | + | |
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
| |||
0 commit comments