-
Notifications
You must be signed in to change notification settings - Fork 3
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
fix: added warning #9
base: main
Are you sure you want to change the base?
fix: added warning #9
Conversation
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.
Added more descriptive instructions to the warning message
src/toolhouse/sdk.py
Outdated
res = self.tools.get_tools(GetToolsRequest(provider=self.provider, metadata=self.metadata, bundle=bundle)) | ||
if bundle != "default" and len(res) == 0: | ||
warn( | ||
"Warning: get_tools() was called, but the tool bundle does not contain any tools." |
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.
Warning: get_tools() was called with the bundle `bundle_name`, but the bundle does not contain any tools. This means your LLM will not be able to see any of the tools you have installed.
src/toolhouse/sdk.py
Outdated
if bundle != "default" and len(res) == 0: | ||
warn( | ||
"Warning: get_tools() was called, but the tool bundle does not contain any tools." | ||
"Please verify that the bundle includes the required tools before proceeding." |
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.
To fix this warning:\n
Solution 1. Go to https://app.toolhouse.ai/bundles, locate the bundle `bundle_name`, then click Edit to add at least one tool.\n
Solution 2. Remove the bundle name from the get_tools() call.
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.
@iamdaniele Can you check if like this is ok?
Added Warning for empty bundles