Find answers from the community

Updated 5 months ago

Tool response

At a glance

The community member has a custom tool that returns JSON output, but the agent keeps converting it to natural language. The community members discuss the need to add a "return_direct" functionality to the tools to keep the JSON output intact. While one community member says they might have time to work on it soon, another notes that it's a bit of a big change. The discussion continues with the community members wondering if the feature has been implemented yet, and one member suggesting that someone should make a pull request for it if they are interested.

Hey, I have a custom tool that returns in json format but the agent keep converting its output to natural language in response, how can I keep the json in the response.
Tool output: { "title": " Orders by Status", "names": ["Cancelled", "Shipped", "Shipped and Delivered"], "amount": [3, 14, 6] }
response: Here's a visualization of the of orders by status: - Cancelled: 3 orders - Shipped: 14 orders - Shipped and Delivered: 6 orders
L
T
a
5 comments
We really need to add a "return_direct" functionality to our tools.

I'll see if someone can get to this soon πŸ™ I miiiiight have time at some point today
yea can we have it updated asap, thanks for the quick response
It's a bit of big change, but will let you know
Just wondering if this has been implemented
Lol not yet. Just haven't prioritized it. Definitely make a PR for it if you are up to it
Add a reply
Sign up and join the conversation on Discord