Sheyn
06/11/2024, 8:00 PMreturn jsonify({
"results": [
{
"toolCallId": tool_call_id,
"result": result_string
}
]
})
Then I have attached a photo of a code snippet of how I am using the tool in my code:
https://cdn.discordapp.com/attachments/1250177958979702805/1250177959856308275/image.png?ex=6669fe74&is=6668acf4&hm=e6b33351bea49ebbf42b63bd59a82b97fd2315371dc98e5094a812029904cd5c&Vapi
06/11/2024, 8:02 PMVapi
06/11/2024, 8:03 PMasync: true
parameter, the assistant will not wait for a response. Make sure that you only use this parameter if you do not need to return a response immediately.
3. Webhook Configuration: If you're using webhooks to receive the tool's response, ensure that they are correctly set up to send the response back to the assistant.
4. Code Review: Review the code snippet where you're calling the tool to make sure it's designed to handle the response correctly. Unfortunately, without seeing the code snippet, I can't provide specific guidance on what might be wrong.
If you're still having trouble after checking these areas, please provide the code snippet or more details about how you're calling the tool, and I'll do my best to assist you further. If the issue persists, you may need to reach out to support for more in-depth troubleshooting.Vapi
06/11/2024, 8:03 PMVapi
06/11/2024, 8:04 PMSahil
06/12/2024, 6:37 AMSheyn
06/13/2024, 11:45 AM