diff --git a/run.go b/run.go index 9c51aaf8d..9cdc0738d 100644 --- a/run.go +++ b/run.go @@ -113,6 +113,8 @@ type RunRequest struct { ResponseFormat any `json:"response_format,omitempty"` // Disable the default behavior of parallel tool calls by setting it: false. ParallelToolCalls any `json:"parallel_tool_calls,omitempty"` + + ToolResources ToolResources `json:"tool_resources"` } // ThreadTruncationStrategy defines the truncation strategy to use for the thread. diff --git a/run_test.go b/run_test.go index cdf99db05..de32de111 100644 --- a/run_test.go +++ b/run_test.go @@ -170,8 +170,14 @@ func TestRun(t *testing.T) { ctx := context.Background() + // create run with tool resources testing _, err := client.CreateRun(ctx, threadID, openai.RunRequest{ AssistantID: assistantID, + ToolResources: openai.ToolResources{ + FileSearch: &openai.FileSearchToolResources{ + VectorStoreIDs: []string{}, + }, + }, }) checks.NoError(t, err, "CreateRun error")