Updates the tool call struct (#595)
This commit is contained in:
committed by
GitHub
parent
4fd904c292
commit
9efad284d0
6
run.go
6
run.go
@@ -142,17 +142,13 @@ const (
|
|||||||
type StepDetails struct {
|
type StepDetails struct {
|
||||||
Type RunStepType `json:"type"`
|
Type RunStepType `json:"type"`
|
||||||
MessageCreation *StepDetailsMessageCreation `json:"message_creation,omitempty"`
|
MessageCreation *StepDetailsMessageCreation `json:"message_creation,omitempty"`
|
||||||
ToolCalls *StepDetailsToolCalls `json:"tool_calls,omitempty"`
|
ToolCalls []ToolCall `json:"tool_calls,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type StepDetailsMessageCreation struct {
|
type StepDetailsMessageCreation struct {
|
||||||
MessageID string `json:"message_id"`
|
MessageID string `json:"message_id"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type StepDetailsToolCalls struct {
|
|
||||||
ToolCalls []ToolCall `json:"tool_calls"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// RunStepList is a list of steps.
|
// RunStepList is a list of steps.
|
||||||
type RunStepList struct {
|
type RunStepList struct {
|
||||||
RunSteps []RunStep `json:"data"`
|
RunSteps []RunStep `json:"data"`
|
||||||
|
|||||||
Reference in New Issue
Block a user