mirror of
https://github.com/langgenius/dify.git
synced 2026-04-28 11:56:55 +08:00
[autofix.ci] apply automated fixes
This commit is contained in:
parent
f2ea86875d
commit
e569623575
@ -180,7 +180,9 @@ class MCPClientWithAuthRetry(MCPClient):
|
|||||||
"""
|
"""
|
||||||
return self._execute_with_retry(super().list_tools)
|
return self._execute_with_retry(super().list_tools)
|
||||||
|
|
||||||
def invoke_tool(self, tool_name: str, tool_args: dict[str, Any], _meta: dict[str, Any] | None = None) -> CallToolResult:
|
def invoke_tool(
|
||||||
|
self, tool_name: str, tool_args: dict[str, Any], _meta: dict[str, Any] | None = None
|
||||||
|
) -> CallToolResult:
|
||||||
"""
|
"""
|
||||||
Invoke a tool on the MCP server with auth retry.
|
Invoke a tool on the MCP server with auth retry.
|
||||||
|
|
||||||
|
|||||||
@ -96,7 +96,9 @@ class MCPClient:
|
|||||||
response = self._session.list_tools()
|
response = self._session.list_tools()
|
||||||
return response.tools
|
return response.tools
|
||||||
|
|
||||||
def invoke_tool(self, tool_name: str, tool_args: dict[str, Any], _meta: dict[str, Any] | None = None) -> CallToolResult:
|
def invoke_tool(
|
||||||
|
self, tool_name: str, tool_args: dict[str, Any], _meta: dict[str, Any] | None = None
|
||||||
|
) -> CallToolResult:
|
||||||
"""Call a tool"""
|
"""Call a tool"""
|
||||||
if not self._session:
|
if not self._session:
|
||||||
raise ValueError("Session not initialized.")
|
raise ValueError("Session not initialized.")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user