yours truly
01/11/2025, 3:37 PMVapi
01/11/2025, 3:38 PMVapi
01/11/2025, 3:38 PMVapi
01/11/2025, 3:38 PMyours truly
01/11/2025, 3:40 PMVapi
01/11/2025, 3:40 PMyours truly
01/13/2025, 6:23 AMShubham Bajaj
01/13/2025, 11:01 AMlogs
🔵 15:14:21:948 CustomLLMRequest Messages:
[
{
"role": "assistant",
"content": "Hi. Is this Johnny?"
},
{"role": "user", "content": "Yes."},
...,
{
"role": "tool",
"tool_call_id": "c22e2e14-affb-4956-ad81-0372d6b30d15",
"content": "Available slots:\n\nThursday, January 9, 2025\n- 6:30\u202fPM - 11:59\u202fPM\n\nFriday, January 10, 2025\n- 12:00\u202fAM - 4:30\u202fPM\n- 5:45\u202fPM - 11:59\u202fPM\n\nSaturday, January 11, 2025\n- 12:00\u202fAM - 4:30\u202fPM\n- 5:45\u202fPM - 11:59\u202fPM\n\nSunday, January 12, 2025\n- 12:00\u202fAM - 11:59\u202fPM\n\nMonday, January 13, 2025\n- 12:00\u202fAM - 4:30\u202fPM\n- 5:45\u202fPM - 11:59\u202fPM\n\nTuesday, January 14, 2025\n- 12:00\u202fAM - 1:30\u202fPM\n- 2:30\u202fPM - 4:30\u202fPM\n- 5:45\u202fPM - 11:59\u202fPM\n\nWednesday, January 15, 2025\n- 12:00\u202fAM - 4:30\u202fPM\n- 5:45\u202fPM - 11:59\u202fPM\n\nThursday, January 16, 2025\n- 12:00\u202fAM - 4:30\u202fPM\n- 5:45\u202fPM - 11:59\u202fPM\n\nFriday, January 17, 2025\n- 12:00\u202fAM - 4:30\u202fPM\n- 5:45\u202fPM - 5:59\u202fPM\n\n When offering available time slots, present them in a brief, natural sentence. For example, instead of listing out every half-hour, say something like: \"We have some openings tomorrow, including slots in the morning, afternoon, and evening. What time range works best for you?\" or \"Would any time between 9 am and 5 pm work for you?\""
},
{"role": "user", "content": "Yes."}
]
🔵 15:14:22:574 ElevenLabs (Websocket #undefined) State "undefined" But Received End Token. Punting 0... ""
🔵 15:14:22:574 LLM Stream Complete. Cost: 0 (+0). Prompt: 20184 (+3327). Completion: 22 (+0)Shubham Bajaj
01/13/2025, 11:08 AMyours truly
01/13/2025, 12:56 PMyours truly
01/14/2025, 12:29 PMShubham Bajaj
01/14/2025, 9:39 PMyours truly
01/14/2025, 9:41 PMDigital B
01/28/2025, 8:12 AMyours truly
01/28/2025, 8:16 AMjs
const mergedMessages = messages.reduce((acc, curr) => {
if (acc.length === 0) {
return [curr];
}
const lastMessage = acc[acc.length - 1];
if (lastMessage.role === curr.role) {
// Combine content of messages with same role
lastMessage.content = `${lastMessage.content}\n${curr.content}`;
return acc;
}
return [...acc, curr];
}, []);
Digital B
01/28/2025, 8:18 AM