Skip to content

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.

3 participants