feat: add ParallelToolCalls to RunRequest (#847)

This commit is contained in:
Jialin Tian
2024-09-21 04:49:28 +08:00
committed by GitHub
parent 9add1c3486
commit 9a4f3a7dbf

2
run.go
View File

@@ -37,6 +37,8 @@ type Run struct {
MaxCompletionTokens int `json:"max_completion_tokens,omitempty"` MaxCompletionTokens int `json:"max_completion_tokens,omitempty"`
// ThreadTruncationStrategy defines the truncation strategy to use for the thread. // ThreadTruncationStrategy defines the truncation strategy to use for the thread.
TruncationStrategy *ThreadTruncationStrategy `json:"truncation_strategy,omitempty"` TruncationStrategy *ThreadTruncationStrategy `json:"truncation_strategy,omitempty"`
// Disable the default behavior of parallel tool calls by setting it: false.
ParallelToolCalls any `json:"parallel_tool_calls,omitempty"`
httpHeader httpHeader
} }