Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ type FunctionCall struct {
Name string `json:"name,omitempty"`
// call function with arguments in JSON format
Arguments string `json:"arguments,omitempty"`
Output string `json:"output,omitempty"`
}

type ChatCompletionResponseFormatType string
Expand Down
12 changes: 12 additions & 0 deletions run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,18 @@ func TestRun(t *testing.T) {
Object: "run",
CreatedAt: 1234567890,
Status: openai.RunStepStatusCompleted,
StepDetails: openai.StepDetails{
Type: openai.RunStepTypeToolCalls,
ToolCalls: []openai.ToolCall{
{
Function: openai.FunctionCall{
Name: "test",
Arguments: "{}",
Output: "test",
},
},
},
},
},
},
})
Expand Down
Loading