-
Notifications
You must be signed in to change notification settings - Fork 8
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
DRAFT Feature: added toolset to SDK #55
base: main
Are you sure you want to change the base?
Conversation
da99a88
to
5c2588c
Compare
5df43e6
to
6cae084
Compare
naptha_sdk/cli.py
Outdated
await toolset.run_tool(toolset_name, tool_name, params) | ||
else: | ||
# Get toolset list | ||
result = await toolset.get_toolset_list() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should get the toolset list from the hub, not the node.
README.md
Outdated
## Toolsets | ||
Specially marked repos can be ingested directly to be made available to agents. These repos are loaded onto the active node and ran there. | ||
|
||
* load from hub: `naptha toolset -lh test toolset:test_toolset` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The command for doing this now would be naptha create toolset:test_toolset
(see here)
README.md
Outdated
* list toolsets: `naptha toolset` | ||
* set toolset: `naptha toolset -s test` | ||
* get current toolset: `naptha toolset -g` | ||
* Run test function: `naptha toolset -r test add a=1,b=2` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The command for this should be something like naptha run toolset:test_toolset -p "a=1,b=2"
like the run commands for all of the other modules.
this adds the toolset class to the SDK which will connect to the endpoints added in this branch:
https://github.com/NapthaAI/node/tree/tool_calls