Ben
01/14/2025, 8:36 PM"tools": [
{
"async_": null,
"messages": null,
"type": "endCall",
"function": {
"strict": true,
"name": "endCall",
"description": "The agent has chosen to end the call",
"parameters": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"items": null,
"properties": null,
"description": "The reason for ending the call",
"required": null
}
},
"required": [
"reason"
]
}
},
"server": {
"timeout_seconds": null,
"url": "https://cb4b-86-27-165-99.ngrok-free.app",
"secret": null,
"headers": null
}
}
],
Which works as expected and the assistant has
"client_messages": [
"conversation-update",
"tool-calls",
"tool-calls-result",
"metadata",
"transcript",
"transfer-update",
"function-call",
"function-call-result"
],
However using the webSDK "@vapi-ai/web": "^2.1.8"
I have noticed that when a tool call occurs I receive a message of type conversation-update with a role tools_calls and then another message of the same type with a role "tool_call_result"
However I NEVER receive a message of type tool-calls or tool-call-result - is this expected behaviour or bug?Vapi
01/14/2025, 8:38 PMendCall tool with the webSDK. Based on the configuration you've provided, you should indeed receive messages of type tool-calls and tool-call-result as they are listed in the client_messages.
However, if you're consistently receiving conversation-update messages with roles tools_calls and tool_call_result instead, this could be an indication of one of the following:
1. The behavior you're observing might be the expected behavior for the version of the webSDK you're using, and the documentation or the SDK might not have been updated to reflect this change.
2. There could be a bug or an inconsistency in the webSDK where it's not sending the expected message types.
To address this, I recommend checking the webSDK documentation for the version you're using to confirm the expected behavior. If the documentation states that you should receive tool-calls and tool-call-result messages and you're not, it would be best to reach out to the support team for further clarification and assistance.
If you need help contacting support or have any other questions, please let me know!Vapi
01/14/2025, 8:38 PMVapi
01/14/2025, 8:38 PMhyr0z.1234
02/21/2025, 9:44 PMShubham Bajaj
02/22/2025, 2:13 PMhyr0z.1234
02/22/2025, 2:34 PMShubham Bajaj
02/24/2025, 11:43 AMShubham Bajaj
02/24/2025, 11:43 AMhyr0z.1234
02/24/2025, 1:52 PM