DoubleA
09/10/2024, 2:45 PMb0d80102-26a0-4e22-babb-81afde52c789
VAPI calls my endpoint with full conversation message, including model type, voice, messages, transcripts etc. Instead of simple jsob object.
In logs object is displayed correctly {"guid":"977a381c-d1c3-4820-81b2-3baa0241f58b"}
, but my endpoint receives everything:
{"message":{"timestamp":"2024-09-10T13:56:56.343Z","type":"tool-calls","toolCalls":[{"id":"call_Xsim(...)","type":"function","function":{"name":"sendSMS","arguments":{"guid":"977a381c-d1c3-4820-81b2-3baa0241f58b"}}}],"toolCallList":[{"id":"call_Xsim(...)","type":"function","function":{"name":"sendSMS","arguments":{"guid":"977a381c-d1c3-4820-81b2-3baa0241f58b"}}}],"toolWithToolCallList":[{"type":"function","function":{"name":"sendSMS","async":false,"parameters":{"type":"object","properties":{"guid":{"type":"string","description":"Identyfikator wiadomości"}}},"description":"Wysyła wiadomość do osoby z którą prowadzisz rozmowę."} (...)
Vapi
09/10/2024, 2:47 PMVapi
09/10/2024, 2:47 PMDoubleA
09/10/2024, 2:52 PMDoubleA
09/10/2024, 3:11 PMShubham Bajaj
09/10/2024, 10:08 PMDoubleA
09/11/2024, 9:23 AM1748b0f3-3eac-490f-bcbe-920b074c1d05
I also see that there is another interesting thing in Messages tab I see that message with tool_calls
field arguments
is string shouldn't it be object, containing (in my case) property guid
?
{
"role": "tool_calls",
"time": 1726045343747,
"message": "",
"toolCalls": [
{
"id": "call_ID",
"type": "function",
"function": {
"name": "sendSMS",
"arguments": "{\"guid\": \"ThisIsSomeGUID\"}"
}
}
],
"secondsFromStart": 79.483
}
Shubham Bajaj
09/11/2024, 9:50 PMDoubleA
09/12/2024, 11:55 AMShubham Bajaj
09/13/2024, 9:31 AM