Replies: 4 comments 6 replies
-
To create a tool that can take a picture and remember its path so it can call other tools to answer any query, you can follow these steps:
This setup allows you to create a tool that can take a picture path and remember it, and then call other tools to answer any query. For more detailed information on tool calling and how to use LangChain tools, you can refer to the LangChain documentation [1][2][3][4][5]. |
Beta Was this translation helpful? Give feedback.
-
No, I want a custom tool that clicks a picture and returns the picture for further analysis. So that tool will be connected to some camera where it will take picture and store in some location and then returns the stored path image |
Beta Was this translation helpful? Give feedback.
-
Can you create a agent that has 2 tools
the 2nd tool is something like --
Now I want an agent that has these 2 tools and can use these whenever it wants. |
Beta Was this translation helpful? Give feedback.
-
This code doesn't work
First gr.inputs and gr.outputs are now deprecated, also I am not using gradio, I have build the chatbot using streamlit. Do I need to use gradio for custom tools? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
So basically I am trying to create a demo agent that has few tools - ClickNewImage and VisualQuestionAnswer. The idea is this agent can take an image whenever it feels it should and then use VisualQuestionAnswer tool to answer any query using that.
Eg ->
Query : What do you see
Agent : For this I would have to take a new pic -> so call ClickNewPic -> now we have the image ( or path of image) , let call the VisualQuestionAnswer tool with the image path ( this could also take the image , but I don't think we could return image from tools ) -> VisualQuestionAnswer will give the result -> passes to user.
issue I am having is that its calling the ClickNewPic tool but then it gives RuntimeError: generator raised StopIteration
I tried to return pathname of the image and even the image itself but all these are giving the same error.
How to create a tool that can take a picture and then remember its path so it can call other tools to answer any query .
System Info
System Information
Package Information
Beta Was this translation helpful? Give feedback.
All reactions