🔵 18:18:14:317 Server Message Requested...(tool-calls ,
https://www.a-----------s):
{
"type": "tool-calls",
"toolCalls": [
{
"id": "call_2RTcSqKpeozxN5kKQQRbY9kL",
"type": "function",
"function": {
"name": "GetCustomerDetails",
"arguments": {
"restaurant_code": "1A---------------DADE"
}
}
}
],
"toolCallList": [
{
"id": "call_2RTcSqKpeozxN5kKQQRbY9kL",
"type": "function",
"function": {
"name": "GetCustomerDetails",
"arguments": {
"restaurant_code": "1A--------------ADE"
}
}
}
],
"toolWithToolCallList": [
{
"type": "function",
"function": {
"name": "GetCustomerDetails",
"async": false,
"parameters": {
"type": "object",
"required": ["restaurant_code"],
"properties": {
"restaurant_code": {
"type": "string",
"description": "the unique identifier of the restaurant"
}
}
},
"description": "Gets customer details. Call this immediately after introducing yourself. If the customer's name is present, use it when addressing him/her. At checkout do not ask for the customer's details\n"
},
"async": false,
"server": {
"url": "https://www.---------omerDetails",
"timeoutSeconds": 60
},
"messages": [
{
"type": "request-response-delayed",
"content": " ",
"conditions": [],
"contents": [],
"timingMilliseconds": 0
},
{
"type": "request-complete",
"content": " ",
"contents": [],
"conditions": [],
"endCallAfterSpokenEnabled": false,
"role": "assistant"
},
{
"type": "request-failed",
"content": " ",
"conditions": [],
"contents": [],
"endCallAfterSpokenEnabled": false
},
{
"type": "request-start",
"content": " ",
"contents": [],
"conditions": [],
"blocking": false
}
],
"toolCall": {
"id": "call_2RTcSqKpeozxN5kKQQRbY9kL",
"type": "function",
"function": {
"name": "GetCustomerDetails",
"arguments": {
"restaurant_code": "1A--------ADE"
}
}
}
}
]
}
I noticed that the tool call request-complete message was set to an empty string. This caused the assistant to not use the assistant turn tool call response to generate its next response, and this issue was repeated for other responses. To fix this, simply remove the not-required messages, such as request-complete, from the messages array. This should resolve the problem.
https://cdn.discordapp.com/attachments/1343933426721488896/1345779182206058618/Screenshot_2025-03-02_at_8.52.10_PM.png?ex=67c5ca08&is=67c47888&hm=2a4d46b6e97f65444790deb9296f761bc3a75e19e79a5348f9a6006d0b6797ce&