mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-14 20:54:30 +08:00
Feat: add local & ssh provider in admin panel (#15039)
### What problem does this PR solve? Feat: add local & ssh provider in admin panel ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@@ -19,6 +19,7 @@ import time
|
||||
from copy import deepcopy
|
||||
import asyncio
|
||||
from functools import partial
|
||||
from collections.abc import Mapping
|
||||
from typing import TypedDict, List, Any
|
||||
from agent.component.base import ComponentParamBase, ComponentBase
|
||||
from common.misc_utils import hash_str2int
|
||||
@@ -58,6 +59,8 @@ class LLMToolPluginCallSession(ToolCallSession):
|
||||
async def tool_call_async(self, name: str, arguments: dict[str, Any], request_timeout: float | int = 10) -> Any:
|
||||
assert name in self.tools_map, f"LLM tool {name} does not exist"
|
||||
logging.info(f"[ToolCall] invoke name={name} arguments={str(arguments)[:200]}")
|
||||
if not isinstance(arguments, Mapping):
|
||||
raise TypeError(f"Tool arguments for {name} must be an object, got {type(arguments).__name__}")
|
||||
st = timer()
|
||||
tool_obj = self.tools_map[name]
|
||||
if isinstance(tool_obj, MCPToolBinding):
|
||||
|
||||
Reference in New Issue
Block a user