Compare commits

...

1 Commits

Author SHA1 Message Date
Grace Guo
a6df9d75cf also need to set type to omitempty to work 2025-12-17 18:55:28 -08:00

View File

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