Commit 4c26908
Narrow ComputerTool.computer union for Responses API serialization
openai-agents 0.14 widened ComputerTool.computer to accept factory
types (ComputerCreate/ComputerProvider) that don't expose environment
or dimensions. Match the upstream pattern: narrow to Computer /
AsyncComputer before reading those attributes, and validate that
environment/dimensions are set.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 17490c4 commit 4c26908
1 file changed
Lines changed: 21 additions & 3 deletions
Lines changed: 21 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
308 | 309 | | |
309 | 310 | | |
310 | 311 | | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
311 | 329 | | |
312 | 330 | | |
313 | | - | |
314 | | - | |
315 | | - | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
316 | 334 | | |
317 | 335 | | |
318 | 336 | | |
| |||
0 commit comments