diff --git a/api/types.go b/api/types.go index d24178d16..6a441eb00 100644 --- a/api/types.go +++ b/api/types.go @@ -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"`