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

@@ -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]:
"""执行用户画像更新(异步后台执行,不阻塞回复)