DSPy Integration¶
- async agentstr.mcp.dspy.to_dspy_tools(nostr_mcp_client: NostrMCPClient) list[Tool] [source]¶
Convert tools from the MCP client to Dspy tools.
- Parameters:
nostr_mcp_client – An instance of NostrMCPClient to fetch tools from.
- Returns:
A list of DSPy Tool objects that wrap the MCP tools.
This module provides integration with DSPy tools, enabling conversion between MCP tools and DSPy’s tool format.