What is the proper way to handle client-only tool calls? #8885
Unanswered
danielo515
asked this question in
Help
Replies: 1 comment
-
Found the root cause of the problem is that I was not providing the toolResponseData in the property called data, so it was getting into a loop. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a series of tool calls that I want to apply only on the frontend side.
They are basically fitters to my current view that the AI can set. However I'm running into problems because they are not saved to the history of messages. They are never submit back to the backend.
I tried activating
sendAutomaticallyWhen: lastAssistantMessageIsCompleteWithToolCalls
and now what I get is a loop of the same tool being called over and over again.So I don't know how is this supposed to be handled and at the same time stop the confirmation that I run the tool in the message history.
The tool called input is the filters that should be set on the front-end, and the tool called output is just the confirmation that it was executed. Something like this:
Beta Was this translation helpful? Give feedback.
All reactions