Repository navigation
Commit a0b4866
authored
fix(openai): trace computer use and access programs (#876)
## Summary
- Trace Agents computer-use, browser-authentication, and approval-result
items in tool spans.
- Convert screenshot data URLs from computer-use outputs into Braintrust
attachments.
- Capture Responses `access_programs` in request and response metadata,
with defensive reads for older OpenAI pins.
Fixes #869
## Live traces
- [Computer-use span with screenshot
attachment](https://www.braintrust.dev/app/Braintrust%20SDKs/p/openai-computer-use-access-programs-live-20261005/logs?r=8fa3bd730d96b150c3dcecaa729331d5&s=1befb8072daa3a4b&tvt=trace)
- [Responses `access_programs`
trace](https://www.braintrust.dev/app/Braintrust%20SDKs/p/openai-computer-use-access-programs-live-20261005/logs?r=bf79e4b24db593bd142344dff5f63208&s=ec148b3661e85412&tvt=trace)1 parent c2bb4f1 commit a0b4866
3 files changed
Lines changed: 190 additions & 4 deletions
File tree
- py/src/braintrust/integrations/openai
- cassettes/latest
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
96 | 105 | | |
97 | 106 | | |
98 | 107 | | |
| |||
189 | 198 | | |
190 | 199 | | |
191 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
192 | 206 | | |
193 | 207 | | |
194 | 208 | | |
| |||
239 | 253 | | |
240 | 254 | | |
241 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
242 | 275 | | |
243 | 276 | | |
244 | 277 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
| |||
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| 118 | + | |
117 | 119 | | |
118 | 120 | | |
119 | 121 | | |
| |||
1183 | 1185 | | |
1184 | 1186 | | |
1185 | 1187 | | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
1186 | 1192 | | |
1187 | 1193 | | |
1188 | 1194 | | |
| |||
1194 | 1200 | | |
1195 | 1201 | | |
1196 | 1202 | | |
| 1203 | + | |
1197 | 1204 | | |
1198 | 1205 | | |
1199 | 1206 | | |
| |||
1272 | 1279 | | |
1273 | 1280 | | |
1274 | 1281 | | |
1275 | | - | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
1276 | 1289 | | |
1277 | 1290 | | |
1278 | 1291 | | |
| |||
1286 | 1299 | | |
1287 | 1300 | | |
1288 | 1301 | | |
1289 | | - | |
| 1302 | + | |
1290 | 1303 | | |
1291 | 1304 | | |
1292 | 1305 | | |
| |||
1299 | 1312 | | |
1300 | 1313 | | |
1301 | 1314 | | |
1302 | | - | |
| 1315 | + | |
1303 | 1316 | | |
1304 | 1317 | | |
1305 | 1318 | | |
| |||
1383 | 1396 | | |
1384 | 1397 | | |
1385 | 1398 | | |
1386 | | - | |
| 1399 | + | |
1387 | 1400 | | |
1388 | 1401 | | |
1389 | 1402 | | |
| |||
1412 | 1425 | | |
1413 | 1426 | | |
1414 | 1427 | | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
1415 | 1449 | | |
1416 | 1450 | | |
1417 | 1451 | | |
| |||
0 commit comments