DSPy: The framework for programming—not prompting—language models
Python
update type hint of ClientSession (#8894)
TomuHirata965da1db9cec
diff --git a/dspy/adapters/types/tool.py b/dspy/adapters/types/tool.pyindex 153220c30..1fa01690d 100644--- a/dspy/adapters/types/tool.py+++ b/dspy/adapters/types/tool.py@@ -195,7 +195,7 @@ class Tool(Type):return result@classmethod- def from_mcp_tool(cls, session: "mcp.client.session.ClientSession", tool: "mcp.types.Tool") -> "Tool":+ def from_mcp_tool(cls, session: "mcp.ClientSession", tool: "mcp.types.Tool") -> "Tool":"""Build a DSPy tool from an MCP tool and a ClientSession.