Does Tool Call have a timeout?
# support
a
I am calling a custom tool from the Vapi Agent. Though the API is sending back a response, but in some of the Vapi logs I see 'No result returned'. Why is this, any timeout issue?
v
@Aishik It sounds like you might be experiencing an issue where the custom tool isn't always returning a result as expected. This could be due to a variety of reasons, including a timeout issue. If the custom tool is taking too long to process the request, it might not send back a response before the Vapi Agent's timeout limit is reached. Here are a few steps you can take to troubleshoot this issue: 1. **Check the Custom Tool's Response Time**: Ensure that the custom tool's processing time is within the acceptable range and that it's not exceeding the Vapi Agent's timeout threshold. 2. **Review the Custom Tool's Code**: Look for any potential bugs or conditions that could prevent a response from being sent. 3. **Examine Network Issues**: Network latency or connectivity problems between the Vapi Agent and your server could also cause timeouts. 4. **Review Server Logs**: Check the server logs where the custom tool is hosted to see if there are any errors or warnings that could explain the missing results. 5. **Validate the Response Format**: Ensure that the custom tool is sending back the response in the correct JSON format as expected by the Vapi Agent. 6. **Test with Different Scenarios**: Try calling the custom tool with various inputs to see if the issue is consistent or if it only occurs under certain conditions. If you've gone through these steps and are still facing issues, it might be helpful to reach out to the support team with specific details so they can assist you further. If you'd like, I can help you initiate a support ticket. Would you like me to do that for you?
You can continue this conversation by mentioning me in the message.
a
@Vapi what is the value of Vapi Agent's Timeout threshold?
v
@Aishik The specific value of the Vapi Agent's timeout threshold is not provided in the context you've given me. Typically, API timeout values can vary based on the system design and the expected duration of tasks. Common timeout durations range from a few seconds to a minute for different services. To find out the exact timeout value for the Vapi Agent, you would need to refer to the Vapi documentation or configuration settings. If this information is not readily available to you, I would recommend reaching out to the Vapi support team for clarification. If you need further assistance with this or any other questions, please let me know!
a
@Sahil need your help here as well
s
@Aishik can you please join the office hour? https://discord.gg/RwCPr9yN?event=1288049123458682942
a
Resolved this
22 Views