HI
I am building a tool that the AI calls to get a list of appointments. The Assistant is doing the following request to the tool and getting the response below...everthing seems correct but the AI still doesnt talk back the response and says there are no upcoming appointments. Do I have to change anythiing on the prompt?
Thanks.
{
"message": {
"timestamp": 1750525825056,
"type": "tool-calls",
"toolCalls": [
{
"id": "call_j92STzv6K7gIueLGSVa9kWce",
"type": "function",
"function": {
"name": "get_appointments_aa1d8991",
"arguments": {}
}
}
],
"toolCallList": [
{
"id": "call_j92STzv6K7gIueLGSVa9kWce",
"type": "function",
"function": {
"name": "get_appointments_aa1d8991",
"arguments": {}
}
}
],
"toolWithToolCallList": [
{
"type": "function",
"function": {
"name": "get_appointments_aa1d8991",
"parameters": {
"type": "object",
"required": [],
"properties": {}
},
"description": "Get upcoming appointments for the patient calling. The tool will return a list of appointments, or any errors if there are no appointments."
},
"async": true,
...
And it is getting the following output.
{
"results": [
{
"toolCallId": "call_j92STzv6K7gIueLGSVa9kWce",
"result": "The tool returned the following output: Your upcoming appointments are 2024-06-20T10:00:00.000-07:00 - Unknown type, 2025-06-20T10:00:00.000-07:00 - Unknown type, 2025-06-20T10:00:00.000-07:00 - Unknown type, 2025-06-20T12:00:00.000-07:00 - Unknown type"
}
]
}