I have a tool in my prompt that looks like this (abbreviated):
{
"name": "describeProblem",
"description": "Describe the problem in simpler terms for future analysis",
"parameters": {
"type": "object",
"required": [
"correctAnswerFields"
],
"properties": {
"correctAnswerFields": {
"type": [
"string",
"array"
],
"description": "Format it as a list of fields"
}
}
}
}
I get an error like this: Invalid JSON payload received. Unknown name \"type\" at 'tools[0].function_declarations[0].parameters.properties[2].value': Proto field is not repeating, cannot start list.", "status": "INVALID_ARGUMENT", "details": [ { "@type": "type.googleapis.com/google.rpc.BadRequest", "fieldViolations": [ { "field": "tools[0].function_declarations[0].parameters.properties[2].value", "description": "Invalid JSON payload received. Unknown name \"type\" at 'tools[0].function_declarations[0].parameters.properties[2].value': Proto field is not repeating, cannot start list." } ] } ] } } ]
JSON Schemas allow lists of types.