SoulAuctioneer
02/21/2025, 3:24 AMtool_call_result
message with result No result returned.
is sent to the LLM. I believe the correct behavior would be to wait until the timeout is exceeded.
Sending a message from the client with the role tool_call_result
and correctly-formatted result just gives in an invalid message error. This feels like a straight-up bug.
Of course, I can still send the content that the tool call requested to the Assistant as a regular system message, but by then the Assistant has already decided it's failed.Shubham Bajaj
02/22/2025, 10:15 AMSoulAuctioneer
02/22/2025, 11:46 PMSoulAuctioneer
02/23/2025, 10:47 PMShubham Bajaj
02/24/2025, 11:33 AMShubham Bajaj
02/24/2025, 11:34 AMSoulAuctioneer
02/25/2025, 1:55 AMShubham Bajaj
02/26/2025, 3:19 AMSoulAuctioneer
02/26/2025, 8:21 AMfunctions
to tools
, though I could be wrong...
I need to:
1. Receive a tool call request on the client. This already works, VAPI sends the tool call as a message, although I suspect it's just informational.
2. Send a toolCallResult back to VAPI from the client (this does not work, VAPI fails in various interesting ways).
Per the documentation:
These are all the webhook messages that will be sent to the client-side SDKs during the call.
...
Request
...
type: "tool-calls"
This is the type of the message. “tool-calls” is sent to call a tool.
Response
These are the messages that can be sent from client-side SDKs to control the call.
...
type: "add-message"
message: This is the message to add to the conversation.
role: Allowed values: assistant, function, user, system, tool
The response roles assistant
, user
, system
are self-explanatory and standard. tool
and function
are not, and there's no documentation about them.Vapi
03/02/2025, 2:14 PMSoulAuctioneer
03/14/2025, 9:41 PM