We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a0ff5a commit 0198bc2Copy full SHA for 0198bc2
chat.go
@@ -188,6 +188,7 @@ type FunctionCall struct {
188
Name string `json:"name,omitempty"`
189
// call function with arguments in JSON format
190
Arguments string `json:"arguments,omitempty"`
191
+ Output string `json:"output,omitempty"`
192
}
193
194
type ChatCompletionResponseFormatType string
run_test.go
@@ -52,6 +52,18 @@ func TestRun(t *testing.T) {
52
Object: "run",
53
CreatedAt: 1234567890,
54
Status: openai.RunStepStatusCompleted,
55
+ StepDetails: openai.StepDetails{
56
+ Type: openai.RunStepTypeToolCalls,
57
+ ToolCalls: []openai.ToolCall{
58
+ {
59
+ Function: openai.FunctionCall{
60
+ Name: "test",
61
+ Arguments: "{}",
62
+ Output: "test",
63
+ },
64
65
66
67
},
68
69
})
0 commit comments