From a6df9d75cf2b3ce5c35355884516b2063e2c01ea Mon Sep 17 00:00:00 2001 From: Grace Guo Date: Wed, 17 Dec 2025 18:55:28 -0800 Subject: [PATCH] also need to set type to omitempty to work --- api/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"`