File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -188,6 +188,7 @@ type FunctionCall struct {
188
188
Name string `json:"name,omitempty"`
189
189
// call function with arguments in JSON format
190
190
Arguments string `json:"arguments,omitempty"`
191
+ Output string `json:"output,omitempty"`
191
192
}
192
193
193
194
type ChatCompletionResponseFormatType string
Original file line number Diff line number Diff line change @@ -52,6 +52,18 @@ func TestRun(t *testing.T) {
52
52
Object : "run" ,
53
53
CreatedAt : 1234567890 ,
54
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
+ },
55
67
},
56
68
},
57
69
})
You can’t perform that action at this time.
0 commit comments