mcp
This commit is contained in:
1 parent
9f578780bd
commit
5807132ac6
6 files changed
+838
-81
No files matched your search
@@ -53,3 +53,11 @@ func ObjectArray(desc string) json.RawMessage {
|
||||
})
|
||||
return b
|
||||
}
|
||||
|
||||
// IntegerArray builds an array-of-integers schema.
|
||||
func IntegerArray(desc string) json.RawMessage {
|
||||
b, _ := json.Marshal(map[string]any{
|
||||
"type": "array", "description": desc, "items": map[string]string{"type": "integer"},
|
||||
})
|
||||
return b
|
||||
}
|
||||
Reference in new issue
Block a user