Skip to content

Commit 9efad28

Browse files
Updates the tool call struct (#595)
1 parent 4fd904c commit 9efad28

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

run.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,17 +142,13 @@ const (
142142
type StepDetails struct {
143143
Type RunStepType `json:"type"`
144144
MessageCreation *StepDetailsMessageCreation `json:"message_creation,omitempty"`
145-
ToolCalls *StepDetailsToolCalls `json:"tool_calls,omitempty"`
145+
ToolCalls []ToolCall `json:"tool_calls,omitempty"`
146146
}
147147

148148
type StepDetailsMessageCreation struct {
149149
MessageID string `json:"message_id"`
150150
}
151151

152-
type StepDetailsToolCalls struct {
153-
ToolCalls []ToolCall `json:"tool_calls"`
154-
}
155-
156152
// RunStepList is a list of steps.
157153
type RunStepList struct {
158154
RunSteps []RunStep `json:"data"`

0 commit comments

Comments
 (0)