also need to set type to omitempty to work

This commit is contained in:
Grace Guo 2025-12-17 18:55:28 -08:00
parent 0fadeffaee
commit a6df9d75cf
1 changed files with 1 additions and 1 deletions

View File

@ -337,7 +337,7 @@ func mapToTypeScriptType(jsonType string) string {
} }
type ToolFunctionParameters struct { type ToolFunctionParameters struct {
Type string `json:"type"` Type string `json:"type,omitempty"`
Defs any `json:"$defs,omitempty"` Defs any `json:"$defs,omitempty"`
Items any `json:"items,omitempty"` Items any `json:"items,omitempty"`
Required []string `json:"required,omitempty"` Required []string `json:"required,omitempty"`