feat(user_fact_tool, user_profile_tool): 将历史记录有效期设置为0以禁用历史记录功能
This commit is contained in:
@@ -95,10 +95,39 @@ components:基本插件组件管理
|
|||||||
mcp_tool_manager.py:MCP工具管理器
|
mcp_tool_manager.py:MCP工具管理器
|
||||||
permission_manager.py:权限管理器
|
permission_manager.py:权限管理器
|
||||||
plugin_manager.py:插件管理器
|
plugin_manager.py:插件管理器
|
||||||
|
prompt_component_manager.py:Prompt组件管理器
|
||||||
tool_manager:工具相关管理
|
tool_manager:工具相关管理
|
||||||
|
__init__.py:导出
|
||||||
tool_histoty.py:工具调用历史记录
|
tool_histoty.py:工具调用历史记录
|
||||||
tool_use.py:实际工具调用器
|
tool_use.py:实际工具调用器
|
||||||
types.py:组件类型
|
types.py:组件类型
|
||||||
registry.py:组件注册管理
|
registry.py:组件注册管理
|
||||||
state_manager.py:组件状态管理
|
state_manager.py:组件状态管理
|
||||||
|
prompt:提示词管理系统
|
||||||
|
__init__.py:导出
|
||||||
|
prompt.py:Prompt基类
|
||||||
|
manager.py:全局prompt管理器
|
||||||
|
params.py:Prompt参数系统
|
||||||
|
perception:感知学习系统
|
||||||
|
__init__.py:导出
|
||||||
|
memory:常规记忆
|
||||||
|
...
|
||||||
|
knowledge:知识库
|
||||||
|
...
|
||||||
|
meme:黑话库
|
||||||
|
...
|
||||||
|
express:表达学习
|
||||||
|
...
|
||||||
|
transport:通讯传输系统
|
||||||
|
__init__.py:导出
|
||||||
|
message_receive:消息接收
|
||||||
|
...
|
||||||
|
message_send:消息发送
|
||||||
|
...
|
||||||
|
router:api路由
|
||||||
|
...
|
||||||
|
sink:针对适配器的core sink和ws接收器
|
||||||
|
...
|
||||||
|
models:基本模型
|
||||||
|
__init__.py:导出
|
||||||
|
|
||||||
@@ -39,7 +39,7 @@ class UserFactTool(BaseTool):
|
|||||||
("info_value", ToolParamType.STRING, "具体内容,如'11月23日'、'程序员'、'想开咖啡店'", True, None),
|
("info_value", ToolParamType.STRING, "具体内容,如'11月23日'、'程序员'、'想开咖啡店'", True, None),
|
||||||
]
|
]
|
||||||
available_for_llm = True
|
available_for_llm = True
|
||||||
history_ttl = 5
|
history_ttl = 0
|
||||||
|
|
||||||
async def execute(self, function_args: dict[str, Any]) -> dict[str, Any]:
|
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),
|
("key_info_value", ToolParamType.STRING, "具体信息内容(必须是具体值如'11月23日'、'上海')", False, None),
|
||||||
]
|
]
|
||||||
available_for_llm = True
|
available_for_llm = True
|
||||||
history_ttl = 1
|
history_ttl = 0
|
||||||
|
|
||||||
async def execute(self, function_args: dict[str, Any]) -> dict[str, Any]:
|
async def execute(self, function_args: dict[str, Any]) -> dict[str, Any]:
|
||||||
"""执行用户画像更新(异步后台执行,不阻塞回复)
|
"""执行用户画像更新(异步后台执行,不阻塞回复)
|
||||||
|
|||||||
Reference in New Issue
Block a user