Skip to content

Commit bb9a086

Browse files
committed
Agent quickstarts - JS - fix toolResources
1 parent 18e0d41 commit bb9a086

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

articles/ai-services/agents/includes/quickstart-javascript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export async function main() {
121121
name: "my-agent",
122122
instructions: "You are a helpful agent",
123123
tools: [codeInterpreterTool.definition],
124-
toolResources: codeInterpreterTool.resources,
124+
toolResources: codeInterpreterTool.file_ids,
125125
});
126126

127127
// Step 3 a thread

articles/ai-services/agents/includes/quickstart-typescript.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,11 @@ export async function main(): Promise<void> {
106106
name: "my-agent",
107107
instructions: "You are a helpful agent",
108108
tools: [codeInterpreterTool.definition],
109-
toolResources: codeInterpreterTool.resources,
109+
toolResources: {
110+
codeInterpreter: {
111+
fileIds: []
112+
}
113+
}
110114
});
111115

112116
// Step 3: Create a thread

0 commit comments

Comments
 (0)