fix(toolset): 启动时自动补种系统工具集,工具集页面移至智能体侧边栏
- init_state_machine 启动时检查 DB 并补种 system_basic/system_chat/system_workflow - 修复 postgres facade 缺少 is_system/category 参数的问题 - 前端工具集从"插件"独立为侧边栏"工具集"tab,位于智能体和插件之间 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -376,8 +376,10 @@ class PostgresDatabase:
|
||||
tools: list,
|
||||
description: str = None,
|
||||
owner_id: str = None,
|
||||
is_system: bool = False,
|
||||
category: str = "user",
|
||||
):
|
||||
"""插入或更新一个用户自定义工具组。"""
|
||||
"""插入或更新一个工具组(系统预置或用户自定义)。"""
|
||||
await self.ready_event.wait()
|
||||
return await self._custom_toolset_database.upsert(
|
||||
toolset_id=toolset_id,
|
||||
@@ -385,6 +387,8 @@ class PostgresDatabase:
|
||||
tools=tools,
|
||||
description=description,
|
||||
owner_id=owner_id,
|
||||
is_system=is_system,
|
||||
category=category,
|
||||
)
|
||||
|
||||
async def get_custom_toolset(self, toolset_id: str):
|
||||
|
||||
Reference in New Issue
Block a user