Hi, i’m testing an agent on GenAi Platform. I’ve added a route for a function. when testing a function directly, it’s working properly. But when i test whith agent chat in plkayground, it fails with a “function call failed”. i don’t know where to look for errors.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
To troubleshoot the “function call failed” issue in the agent chat, check the following:
Function Parameters: Ensure the function is receiving correct inputs during the chat.
Logs/Errors: Review error logs for specific issues.
Route Configuration: Verify the function route is correctly set up in the agent.
Permissions: Check that the agent has necessary permissions to call the function.
Test Simpler Functions: Test with a basic function to see if the issue is specific to the original function.
Async Issues: Ensure there are no timing issues if the function involves async operations.
If issues persist, consult the platform’s documentation or support.
Hey!
If the function works directly but fails in Agent Chat, it’s likely a mismatch between the function name, route, or expected response format. Double-check those first.
If everything looks right and it still fails, best to reach out to DigitalOcean support so they can check backend logs and help debug it further.
- Bobby