Looking at the logs:
{
"role": "bot",
"time": 1747382305858.002,
"source": "",
"endTime": 1747382309728,
"message": "I've pulled up the food menu for you. What kind of dish are you interested in?",
"duration": 3629.9951171875,
"secondsFromStart": 37.260002
},
{
"role": "tool_calls",
"time": 1747382309055,
"message": "",
"toolCalls": \[
{
"id": "call_3GTxIcp9MaERZ3uQgZOJPetE",
"type": "function",
"function": {
"name": "showServices",
"arguments": "{\\"category\\": \\"FOOD\\"}"
}
}
\],
"secondsFromStart": 34.954
},
{
"name": "showServices",
"role": "tool_call_result",
"time": 1747382309058,
"result": "Success.",
"toolCallId": "call_3GTxIcp9MaERZ3uQgZOJPetE",
"secondsFromStart": 34.957
}
It appears that you were trying to access a different tool (possibly giveFoodMenuList) but instead the assistant chose this one. Also I noticed that the server URL for your functions is as shows:
"serverUrl": "
"
when using the API, the server object is actually split into multiple properties:
this may require some prompt reworking for which tool you want to execute for which task, but also I would verify that the formatting of the request is following the documentation