@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?