-
-
Notifications
You must be signed in to change notification settings - Fork 695
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
Proposing a new package called Toolbox which facilitates using a group of tools #1103
Comments
seems useful for my use case as well. I am very new to the go language and could not figure out how to do this. I was looking for this very thing but could not find anything in the langchain docs about a way to use a group of tools. i have also been using crewai for a longtime but with this idea i can start giving langchaingo a chance at my project. This would make it very easy to specify tools. Thanks for proposing this! I hope this gets into the repo soon. |
If we add this, I think it should be a type wrapping []Tool in the tool package called box. We already have the Tool interface there that has the same function as your GetsWorkDone. However I don't know how useful it would be as it is very easy for a user to implement themself (4 lines of code). What do you think @amritsingh183? |
I agree with you @FluffyKebab about how easy a gopher can implement it. But having it being offered by langchain is more convenient and would also help standardize the ToolBox (or Box) type of implementations( if and when an external/thirdparty wants to provide its ToolBox(s) [or Box(s)] to lanchains toolcalling logic). |
True, I know for example that Zapier already has something that can be a toolbox instead. Do you want to add a PR for this? |
Sure, will do.
|
Maybe something like SelectTool, that returns a tool, can be more flexible? + redundancy in name "tool.ToolBox" |
|
I have created a PR for this #1117 |
the previous PRs were not neat, so created a fresh one again #1117 |
Consider the following code which defines a
ToolBox
and using it with langchain's toolcalling like so
see the full example below which defines a tool called
WeatherTool
which implementsToolBox
The text was updated successfully, but these errors were encountered: