Skip to content

Add dspy.Tool.from_mcp_tool #8130

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 6 commits into from
Apr 28, 2025
Merged

Conversation

TomeHirata
Copy link
Collaborator

@TomeHirata TomeHirata commented Apr 28, 2025

This PR introduces a util method to convert an MCP tool into a DSPy async tool. Taking over #8128, and combined with the follow-up change of async tool execution mentioned here, we will enable DSPy users to use MCP tools with dspy.ReAct.
A follow-up PR will be filed for the tutorial update.

@TomeHirata TomeHirata force-pushed the feat/mcp/tool-build branch from 96169a9 to 94fd6c5 Compare April 28, 2025 10:53
@okhat okhat changed the title Add util for using mcp tools as DSPy tools Add dspy.Tool. from_mcp_tool Apr 28, 2025
@okhat okhat changed the title Add dspy.Tool. from_mcp_tool Add dspy.Tool.from_mcp_tool Apr 28, 2025
@okhat okhat merged commit b58f075 into stanfordnlp:main Apr 28, 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