-
Notifications
You must be signed in to change notification settings - Fork 6
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
Combine operands #1
Comments
Hey! I think I've figured out how to chain tools together with multiple inputs. See the gist below for a demo (ignore the rate limit errors - I haven't paid for the API yet 😆 ). In this demo, I load the image, multiply it by a scalar (i.e., two inputs), and view the result. Basically, I think we can swap the agent type to https://gist.github.com/kevinyamauchi/4eb286e9a1f342ad0e854b1dc9fdd445 edit: I haven't tested fully, but happy to do so and make a PR if you think this is a viable approach. |
The other piece is for chaining operations like you described above, I think we need to add more a structured data registry so that tools can easily load/save results (e.g., label images should be easily discernible from intensity images) |
I've tried that too! This turns Bob into a bot that has no memory :-( |
Ah dang. What are the use cases for having the memory? Recalling the last result? |
Check out this notebook. It's executed after changing to And: |
This might be a potential solution, but it seems a deep rabbit hole: https://python.langchain.com/docs/use_cases/autonomous_agents/autogpt |
Hey! I have another attempt, now creating an https://gist.github.com/kevinyamauchi/491944468412d817038c2ebbb7d9cc91 |
I added back in the multi-input compatibility, so I think this shows both using conversation history and multi-input tools. This seems like it could be a good approach. We made consider adding some additional agents to the chain to manage caching/IO of intermediate results. I will make a PR to see how converting the current tools over to this agent would look. https://gist.github.com/kevinyamauchi/9e4049b799bb705c575c8ae3070c7dae |
Oh that notebook looks super amazing @kevinyamauchi ! I can't wait for this PR ❤️ |
make code hidden with option to show
It would be cools if we had multi-input tools available. This would allow us to call operations such as "Apply the seeded watershed algorithm to the membrane image and use the nuclei segmentation as seeds."
Unfortunately, the
StructuredTool
is not compatible with theAgentType.CHAT_CONVERSATIONAL_REACT_DESCRIPTION
.Hints:
The text was updated successfully, but these errors were encountered: