ClientMessages: coversation-update versus tool-cal...
# support
b
Taking e.g. conversation id: 7db0f12b-abdc-4c35-83a4-5dea61a4c9a1 I have a assistant configured to use an endCall tool
Copy code
"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
Copy code
"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?
v
@Ben It sounds like you're observing a discrepancy between the expected client messages and the actual messages received when using the
endCall
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!
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
h
@here Im facing the same issue, was this reviewed at any point?
s
@hyr0z.1234 can you ping me to your #1211483291191083018 ticket
h
Done, thx
s
@Ben @hyr0z.1234I will attempt to replicate the issue and inform you whether it is a bug or not. If it is a bug, I will provide an estimated time of resolution. Otherwise, I will share the solution.
works for both of you?
h
Yes thanks @Shubham Bajaj, will be waiting for updates since we are considering implementing a service like this for our onboarding process in the coming days
5 Views