-
-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Output Schema missing in Custom Tool[BUG] #2436
Comments
The term 'output schema' is referring to the output the LLM needs to produce in order to call the function. So basically it's your tools input schema. |
But for my tool, there is no schema required. The tool is called, and it returns information. Also, the Docs: https://docs.flowiseai.com/integrations/langchain/tools/custom-tool Show "OUTPUT SCHEMA" in the custom tool node, so hence, for a new user like me - this is very confusing. |
Did u fix this issue? If not, check what LangChain says about how an agent needs to query a tool. It basically says that playing with the name a description of tool may help if the agent doesn't know what to do with it (like in my case with Gemini 1.5 flash). Interesting read here: |
I was able to get your time example working fine. So it's likely the 'bug' is between the keyboard and chair in my case :). Will take a look at my code and try and figure out why it's not working in the agent. It works perfectly from the command line though, so it's definitely got me stumped - but it seems not really a bug. |
Will be closing for now, thanks @toi500 for helping! |
I have Flowise installed directly on my machine using pnpm. I have the latest version 1.7.2.
I'm trying to use the custom tool node along with Open AI Chat, Tool Agent and Buffer Memory.
When I'm editing the Custom tool, it seems I only have 'INPUT SCHEMA' as an option, but all tutorials I've seen state an expected 'OUTPUT SCHEMA'
I have a javascript function that returns text in JSON format, but have no way to map the output.
When i run the tool, I can see in
journalctl -f -u flowise
(i have flowise set as a service)that pnpm is executing the tool, and i even see the JSON right there in the logs.
In the chat, even if I confirm what tools are in the context - it replies that yes, it has my tool....when i ask it to execute the tool, it responds that no response is recieved - yet, i see the tool execute, and the output appears in the pnpm logs as described.
I'm thinking because I can't state the OUTPUT SCHEMA in the custom tool node, maybe that's why? See screenshot that shows only an INPUT SCHEMA input.
for the sake of completeness, and in case my function is wrong for tool use somehow, here is the code for my tool (and yes, i read the docs and pnpm installed the axios module to the project):
this returns JSON such as can be seen from the flowise logs here:
The text was updated successfully, but these errors were encountered: