Skip to content

Commit b6c7e9d

Browse files
authored
fix: use container_id from providerData for codeInterpreterTool replay (fixes #253) (#260)
1 parent d9c4ddf commit b6c7e9d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/stale-times-bathe.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@openai/agents-openai': patch
3+
---
4+
5+
Fix codeInterpreterTool run replay by correctly using container_id from providerData (fixes #253)

packages/agents-openai/src/openaiResponsesModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ function getInputItems(
541541
outputs:
542542
item.providerData?.outputs ?? item.providerData?.results ?? [],
543543
status: CodeInterpreterStatus.parse(item.status ?? 'failed'),
544-
container_id: item.providerData?.containerId,
544+
container_id: item.providerData?.container_id,
545545
};
546546

547547
return entry;

0 commit comments

Comments
 (0)