mirror of https://github.com/langgenius/dify.git
[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)
|
||||
|
||||
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.
|
||||
|
||||
|
|
|
|||
|
|
@ -96,7 +96,9 @@ class MCPClient:
|
|||
response = self._session.list_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"""
|
||||
if not self._session:
|
||||
raise ValueError("Session not initialized.")
|
||||
|
|
|
|||
Loading…
Reference in New Issue