Agent running into issue with tool

Answered

Hello,

since the last XANO release on of my agents doesn't work anymore.

It seems the agent is not able to call one of our tool because of some parameters. I already checked them and they all are required. On of them is an object (but I changed that too and the error was the same).

It returns the following error when I call it:{ "code": "ERROR_FATAL", "message": "Invalid schema for function 'save_faq_entry': '0' is not of type 'integer'.", "payload": { "name": "AI_APICallError", "url": "https://api.openai.com/v1/chat/completions", "requestBodyValues": { "model": "gpt-5-mini", "reasoning_effort": "low", "messages": [ { "role": "developer", "content": "" }, { "role": "user", "content": "" } ], "tools": [ { "type": "function", "function": { "name": "save_faq_entry", "description": "", "parameters": { "type": "object", "properties": { "university_id": { "type": "number" }, "faq_data": { "type": "array", "items": { "anyOf": [ { "not": {} }, { "type": "object", "properties": { "question": { "type": "string" }, "answer": { "type": "string" } }, "required": [ "question", "answer" ], "additionalProperties": false } ] }, "minItems": "1", "maxItems": "0" } }, "required": [ "university_id", "faq_data" ], "additionalProperties": false, "$schema": "http://json-schema.org/draft-07/schema#" }, "strict": true } } ], "tool_choice": "auto" }, "statusCode": 400, "responseHeaders": { }, "responseBody": "{\n \"error\": {\n \"message\": \"Invalid schema for function 'save_faq_entry': '0' is not of type 'integer'.\",\n \"type\": \"invalid_request_error\",\n \"param\": \"tools[0].function.parameters\",\n \"code\": \"invalid_function_parameters\"\n }\n}", "isRetryable": false, "data": { "error": { "message": "Invalid schema for function 'save_faq_entry': '0' is not of type 'integer'.", "type": "invalid_request_error", "param": "tools[0].function.parameters", "code": "invalid_function_parameters" } } } }
6 replies