将ToolExecutor迁移进tool_use,顺便改了两处typing

This commit is contained in:
Windpicker-owo
2025-07-27 00:24:40 +08:00
parent fa7b9dd7d8
commit 4ac487dd14
4 changed files with 403 additions and 411 deletions

View File

@@ -139,7 +139,7 @@ class DefaultReplyer:
self.memory_activator = MemoryActivator()
self.instant_memory = InstantMemory(chat_id=self.chat_stream.stream_id)
from src.plugin_system.core.tool_executor import ToolExecutor # 延迟导入ToolExecutor不然会循环依赖
from src.plugin_system.core.tool_use import ToolExecutor # 延迟导入ToolExecutor不然会循环依赖
self.tool_executor = ToolExecutor(chat_id=self.chat_stream.stream_id, enable_cache=True, cache_ttl=3)
def _select_weighted_model_config(self) -> Dict[str, Any]: