File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
articles/ai-services/agents/includes Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ export async function main() {
121
121
name: " my-agent" ,
122
122
instructions: " You are a helpful agent" ,
123
123
tools: [codeInterpreterTool .definition ],
124
- toolResources: codeInterpreterTool .resources ,
124
+ toolResources: codeInterpreterTool .file_ids ,
125
125
});
126
126
127
127
// Step 3 a thread
Original file line number Diff line number Diff line change @@ -106,7 +106,11 @@ export async function main(): Promise<void> {
106
106
name: " my-agent" ,
107
107
instructions: " You are a helpful agent" ,
108
108
tools: [codeInterpreterTool .definition ],
109
- toolResources: codeInterpreterTool .resources ,
109
+ toolResources: {
110
+ codeInterpreter: {
111
+ fileIds: []
112
+ }
113
+ }
110
114
});
111
115
112
116
// Step 3: Create a thread
You can’t perform that action at this time.
0 commit comments