Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions run.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 6 additions & 0 deletions run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
Loading