Agent not recognizing tool response
# support
g
I was copying over an assistant from one account to the other, when I saw that you can't add functions anymore but instead have to add tools. I added a tool that was exactly the same as the function, but when the agent is supposed to call it, it doesn't recognize the response and is thus not able to continue the conversation. What can I do to solve this issue? This is urgent, as our client wants this done today, but we suddenly found ourselves unable to add functions anymore while they used to work perfectly fine. Call IDs d82ae2e7-da72-4f73-8bde-264a38ce3174 d3452076-250a-41b7-b89e-cf5889aabadd Thank you.
v
message has been deleted
@Gabriel C I understand the urgency of the situation. It sounds like there may be an issue with how the tool is being called or how the assistant is handling the response from the tool. Here are a few steps you can take to troubleshoot and resolve the issue: 1. **Check Tool Configuration**: Ensure that the tool is configured correctly in the new account, with the same parameters and response structure as the function had in the old account. 2. **Review Invocation Method**: Verify that the assistant is using the correct method to call the tool. The syntax for calling tools may differ slightly from calling functions. 3. **Examine Call IDs**: Look into the logs associated with the provided Call IDs to identify any errors or discrepancies in the tool's execution or the assistant's response handling. 4. **Update Assistant's Logic**: If the tool's response structure has changed, you may need to update the assistant's logic to correctly interpret the new responses. 5. **Test the Tool Independently**: Try to call the tool independently of the assistant to ensure it's working as expected. 6. **Contact Support**: If you've gone through these steps and the issue persists, it may be best to contact support for further assistance. Since this is an urgent matter, I would recommend starting with these steps immediately. If you need me to perform any specific actions, such as checking logs or configurations, please provide me with the necessary permissions or information to do so.
You can continue this conversation by mentioning me in the message.
s
@Gabriel C can you confirm the return type of your tool call, is it this?
Copy code
json
{"Result": "Booking was successful."}
g
Yes, that's it, the agent doesn't recognize that and instead says the booking was unsuccessful
Could you guys turn functions back on until tools are fixed?
a
s
Please return the respons in following format:
Copy code
json
{
    "results": [
        {
            "toolCallId": "X",
            "result": "Y"
        }
    ]
}
g
Thank you Alex!
7 Views