Skip to content
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

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

Conversation

C0deMunk33
Copy link
Collaborator

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

await toolset.run_tool(toolset_name, tool_name, params)
else:
# Get toolset list
result = await toolset.get_toolset_list()
Copy link
Contributor

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`
Copy link
Contributor

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`
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants