From 9efad284d02d90b2de3eeefc67a966743e47a2ac Mon Sep 17 00:00:00 2001 From: Albert Putra Purnama <14824254+albertpurnama@users.noreply.github.com> Date: Fri, 17 Nov 2023 22:59:01 -0800 Subject: [PATCH] Updates the tool call struct (#595) --- run.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/run.go b/run.go index f95bf0e..dbb708a 100644 --- a/run.go +++ b/run.go @@ -142,17 +142,13 @@ const ( type StepDetails struct { Type RunStepType `json:"type"` MessageCreation *StepDetailsMessageCreation `json:"message_creation,omitempty"` - ToolCalls *StepDetailsToolCalls `json:"tool_calls,omitempty"` + ToolCalls []ToolCall `json:"tool_calls,omitempty"` } type StepDetailsMessageCreation struct { MessageID string `json:"message_id"` } -type StepDetailsToolCalls struct { - ToolCalls []ToolCall `json:"tool_calls"` -} - // RunStepList is a list of steps. type RunStepList struct { RunSteps []RunStep `json:"data"`