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 {
188188 Name string `json:"name,omitempty"`
189189 // call function with arguments in JSON format
190190 Arguments string `json:"arguments,omitempty"`
191+ Output string `json:"output,omitempty"`
191192}
192193
193194type ChatCompletionResponseFormatType string
Original file line number Diff line number Diff line change @@ -52,6 +52,18 @@ func TestRun(t *testing.T) {
5252 Object : "run" ,
5353 CreatedAt : 1234567890 ,
5454 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+ },
5567 },
5668 },
5769 })
You can’t perform that action at this time.
0 commit comments