Revert "【迁移】工具系统再完善:工具缓存、ttl支持、自动记录、长期保存、自动清理缓存、将记录与执行分离、api记录查询、时间聊天工具筛选查询..."

This reverts commit 80ab0c687c.
This commit is contained in:
Windpicker-owo
2025-08-27 12:46:00 +08:00
parent 80ab0c687c
commit 3d93bc4079
9 changed files with 168 additions and 604 deletions

View File

@@ -28,8 +28,6 @@ class BaseTool(ABC):
"""
available_for_llm: bool = False
"""是否可供LLM使用"""
history_ttl: int = 5
"""工具调用历史记录的TTL值默认为5。设为0表示不记录历史"""
def __init__(self, plugin_config: Optional[dict] = None):
self.plugin_config = plugin_config or {} # 直接存储插件配置字典