feat(user_fact_tool, user_profile_tool): 将历史记录有效期设置为0以禁用历史记录功能
This commit is contained in:
@@ -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]:
|
||||
"""执行关键信息记录
|
||||
|
||||
@@ -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]:
|
||||
"""执行用户画像更新(异步后台执行,不阻塞回复)
|
||||
|
||||
Reference in New Issue
Block a user