also need to set type to omitempty to work
This commit is contained in:
parent
0fadeffaee
commit
a6df9d75cf
|
|
@ -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"`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue