https://retellai.com/?utm_source=discord&utm_medium=seo logo
how to check function tool call result like succes...
# ❓・ai-evy-support
v
@AI Evy how to check function tool call result like success or error code
a
Thanks for tagging me @vyyy_20754. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, there isn't explicit documentation about checking function call success or error codes directly. However, I can provide information about function calling implementation and troubleshooting. For custom LLM function calling, the sources show how to handle function call responses but don't detail error checking mechanisms [(1) ]() . The implementation involves parsing function arguments and sending responses back to Retell . For custom functions in Conversation Flow, when Retell sends a request to your endpoint, you can include validation on your server that may reject requests with error codes like 422 [(2) ]() . The sources mention that custom functions send requests to your specified URL and you can extract data from the response [(3) ]() . For troubleshooting function call issues, the sources indicate you should check detailed logs which contain disconnection reasons and SIP error codes when available [(4) ]() . One Discord discussion shows that validation errors (like 422) can occur when your server rejects requests [(2) ]() . I don't have comprehensive information about specific success/error code checking mechanisms for function tool calls in the available sources. Would you like me to try providing a general answer based on my knowledge instead, or would you prefer to check these potentially helpful sources: - [Integrate Function Calling]() - [Custom Function]()
​ To learn more, see the sources I considered: [[1] Integrate Function Calling](https://docs.retellai.com/integrate-llm/integrate-function-calling) [[2] Custom Tool call fails](https://discord.com/channels/1186424376300679209/1400798045930651718) [[3] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[4] Debug outbound connection issues](https://docs.retellai.com/reliability/debug-outbound-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.