feat(user_fact_tool, user_profile_tool): 将历史记录有效期设置为0以禁用历史记录功能

This commit is contained in:
Windpicker-owo
2025-12-15 21:01:07 +08:00
parent 5e708fd1de
commit 1c1db7beac
3 changed files with 32 additions and 3 deletions

View File

@@ -95,10 +95,39 @@ components基本插件组件管理
mcp_tool_manager.pyMCP工具管理器
permission_manager.py权限管理器
plugin_manager.py插件管理器
prompt_component_manager.pyPrompt组件管理器
tool_manager工具相关管理
__init__.py导出
tool_histoty.py工具调用历史记录
tool_use.py实际工具调用器
types.py组件类型
registry.py组件注册管理
state_manager.py组件状态管理
prompt提示词管理系统
__init__.py导出
prompt.pyPrompt基类
manager.py全局prompt管理器
params.pyPrompt参数系统
perception感知学习系统
__init__.py导出
memory常规记忆
...
knowledge知识库
...
meme黑话库
...
express表达学习
...
transport通讯传输系统
__init__.py导出
message_receive消息接收
...
message_send消息发送
...
routerapi路由
...
sink针对适配器的core sink和ws接收器
...
models基本模型
__init__.py导出

View File

@@ -39,7 +39,7 @@ class UserFactTool(BaseTool):
("info_value", ToolParamType.STRING, "具体内容,如'11月23日''程序员''想开咖啡店'", True, None),
]
available_for_llm = True
history_ttl = 5
history_ttl = 0
async def execute(self, function_args: dict[str, Any]) -> dict[str, Any]:
"""执行关键信息记录

View File

@@ -85,7 +85,7 @@ class UserProfileTool(BaseTool):
("key_info_value", ToolParamType.STRING, "具体信息内容(必须是具体值如'11月23日''上海'", False, None),
]
available_for_llm = True
history_ttl = 1
history_ttl = 0
async def execute(self, function_args: dict[str, Any]) -> dict[str, Any]:
"""执行用户画像更新(异步后台执行,不阻塞回复)