feat(toolset): 工具系统重构为 toolset 统一管理,新增系统预置工具集
将工具管理从"agent 挂单个 tool"改为"agent 挂 toolset"模式: - 三个系统预置工具集(system_basic/system_chat/system_workflow)入 DB - 新增 send_file 工具(系统对话工具集)、修复 approval actor 调用 bug - 后端 agent 加载全部走 toolset 链路,移除 load_tools_from_list - 前端工具集中心卡片展示 + agent 配置改为 toolset 多选 - resource API 增加 category 过滤与系统 toolset 保护 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -50,7 +50,7 @@ def test_valid_affinities_accepted():
|
||||
for aff in _VALID_AFFINITIES:
|
||||
m = WorkerIndividualCreate(
|
||||
agent_name="x", agent_type="ordinary", description="d",
|
||||
provider_title="p", model_id="m", system_prompt="s",
|
||||
provider_title="p", model_id="m", persona_id="pid",
|
||||
output_template={}, bound_skill={}, workspace=[], node_affinity=aff,
|
||||
)
|
||||
assert m.node_affinity == aff
|
||||
@@ -62,7 +62,7 @@ def test_invalid_affinity_raises():
|
||||
with pytest.raises(ValidationError):
|
||||
WorkerIndividualCreate(
|
||||
agent_name="x", agent_type="ordinary", description="d",
|
||||
provider_title="p", model_id="m", system_prompt="s",
|
||||
provider_title="p", model_id="m", persona_id="pid",
|
||||
output_template={}, bound_skill={}, workspace=[], node_affinity="bad",
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user