mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 01:50:44 +08:00
为全专家统一开放 memory wiki 工具能力。
将 generalist/ops/image 的 expert 组合加入 memory,使主控调度下的各专家都可调用 memory_wiki_search/apply/lint,并补充注册策略测试防止回归。 Made-with: Cursor
This commit is contained in:
parent
58e47a3059
commit
c6a1da1980
2 changed files with 9 additions and 3 deletions
|
|
@ -24,19 +24,19 @@ class SpecialistConfig:
|
|||
SPECIALISTS: dict[SpecialistId, SpecialistConfig] = {
|
||||
"ops": SpecialistConfig(
|
||||
specialist_id="ops",
|
||||
expert_name="network_ops",
|
||||
expert_name="network_ops+memory",
|
||||
default_tool_tags=None,
|
||||
),
|
||||
"generalist": SpecialistConfig(
|
||||
specialist_id="generalist",
|
||||
expert_name="generalist+workspace+productivity",
|
||||
expert_name="generalist+workspace+productivity+memory",
|
||||
default_tool_tags=None,
|
||||
),
|
||||
"image": SpecialistConfig(
|
||||
specialist_id="image",
|
||||
# image specialist currently reuses generalist expert tool registry,
|
||||
# including image_edit tool.
|
||||
expert_name="generalist",
|
||||
expert_name="generalist+memory",
|
||||
default_tool_tags=None,
|
||||
),
|
||||
"memory": SpecialistConfig(
|
||||
|
|
|
|||
|
|
@ -13,3 +13,9 @@ def test_agent_role_ids_uses_runtime_discovery(monkeypatch) -> None:
|
|||
got = specialists_mod.agent_role_ids()
|
||||
assert got[0] == specialists_mod.MANAGER_AGENT_ID
|
||||
assert "qa" in set(got)
|
||||
|
||||
|
||||
def test_builtin_specialists_include_memory_tools() -> None:
|
||||
assert "memory" in specialists_mod.expert_name_for_specialist("generalist")
|
||||
assert "memory" in specialists_mod.expert_name_for_specialist("ops")
|
||||
assert "memory" in specialists_mod.expert_name_for_specialist("image")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue