Skip to content

Update ToolCollection.from_mcp docstring examples #1398

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

Merged
merged 1 commit into from
May 30, 2025

Conversation

neonwatty
Copy link
Contributor

@neonwatty neonwatty commented May 29, 2025

Updates to examples in from_mcp docstrings to allow for easier out-of-the box usage including:

  • use uv instead of uvx to remove the need to manually install pubmedclient in order to use pubmedmcp@0.1.3 and better isolating the tool usage
  • pass required arg model to CodeAgent init to prevent TypeError: CodeAgent.__init__() missing 1 required positional argument: 'model'from arising with current implementation
  • import and add init for model = InferenceClientModel() to pass to CodeAgent

Copy link
Member

@albertvillanova albertvillanova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@albertvillanova albertvillanova changed the title Update to tools.py from_mcp docstring examples Update ToolCollection.from_mcp docstring examples May 30, 2025
@albertvillanova albertvillanova merged commit 522a315 into huggingface:main May 30, 2025
3 checks passed
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