File tree 2 files changed +14
-0
lines changed
2 files changed +14
-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 @@ -22,6 +22,7 @@ func TestRun(t *testing.T) {
22
22
order := "desc"
23
23
after := "asst_abc122"
24
24
before := "asst_abc124"
25
+ functionCallOutput := "test"
25
26
26
27
client , server , teardown := setupOpenAITestServer ()
27
28
defer teardown ()
@@ -52,6 +53,18 @@ func TestRun(t *testing.T) {
52
53
Object : "run" ,
53
54
CreatedAt : 1234567890 ,
54
55
Status : openai .RunStepStatusCompleted ,
56
+ StepDetails : openai.StepDetails {
57
+ Type : openai .RunStepTypeToolCalls ,
58
+ ToolCalls : []openai.ToolCall {
59
+ {
60
+ Function : openai.FunctionCall {
61
+ Name : "test" ,
62
+ Arguments : "{}" ,
63
+ Output : & functionCallOutput ,
64
+ },
65
+ },
66
+ },
67
+ },
55
68
},
56
69
},
57
70
})
You can’t perform that action at this time.
0 commit comments