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

fix: added warning #9

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

pulphix
Copy link
Contributor

@pulphix pulphix commented Sep 30, 2024

Added Warning for empty bundles

Copy link
Member

@iamdaniele iamdaniele left a 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

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."
Copy link
Member

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.

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."
Copy link
Member

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.

Copy link
Contributor Author

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?

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

Successfully merging this pull request may close these issues.

2 participants