types: send index for tool calls (#12625)

This commit is contained in:
Parth Sareen
2025-10-14 19:35:15 -07:00
committed by GitHub
parent 3dcfd5f69e
commit c4c5a4a01e
2 changed files with 25 additions and 1 deletions

View File

@@ -204,7 +204,7 @@ type ToolCall struct {
}
type ToolCallFunction struct {
Index int `json:"index,omitempty"`
Index int `json:"index"`
Name string `json:"name"`
Arguments ToolCallFunctionArguments `json:"arguments"`
}