mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-10 04:00:44 +08:00
重构主控编排与运行时预热链路,统一工作区提示词/专家调度协议并补齐 wiki 记忆注入与写回闭环。
同时收敛启动与运维脚本默认行为(含 wiki worker)、更新 Admin 可观测性与相关测试,降低首轮时延并提高运行稳定性。 Made-with: Cursor
This commit is contained in:
parent
4a23b715a2
commit
dbbe3add6a
14438 changed files with 2693620 additions and 2546 deletions
|
|
@ -10,6 +10,7 @@ from oclaw.runtime.agents.network_ops_agent import NetworkOpsAgent
|
|||
from oclaw.runtime.agents.specialist_agent import SpecialistProfile
|
||||
from oclaw.runtime.agents.specialists import (
|
||||
AGENT_PROFILE_BINDINGS_KEY,
|
||||
normalize_specialist_id,
|
||||
AGENT_ROLE_IDS,
|
||||
MANAGER_AGENT_ID,
|
||||
SPECIALIST_IDS,
|
||||
|
|
@ -213,26 +214,12 @@ def _build_executor_components(
|
|||
except Exception:
|
||||
pass
|
||||
specialist_profiles = {
|
||||
"ops": SpecialistProfile(
|
||||
name="ops",
|
||||
system_prefix=default_system_prefix_for_specialist("ops", lang),
|
||||
tool_tags=default_tool_tags_for_specialist("ops"),
|
||||
),
|
||||
"generalist": SpecialistProfile(
|
||||
name="generalist",
|
||||
system_prefix=default_system_prefix_for_specialist("generalist", lang),
|
||||
tool_tags=default_tool_tags_for_specialist("generalist"),
|
||||
),
|
||||
"image": SpecialistProfile(
|
||||
name="image",
|
||||
system_prefix=default_system_prefix_for_specialist("image", lang),
|
||||
tool_tags=default_tool_tags_for_specialist("image"),
|
||||
),
|
||||
"memory_curator": SpecialistProfile(
|
||||
name="memory_curator",
|
||||
system_prefix=default_system_prefix_for_specialist("memory_curator", lang),
|
||||
tool_tags=default_tool_tags_for_specialist("memory_curator"),
|
||||
),
|
||||
sid: SpecialistProfile(
|
||||
name=sid,
|
||||
system_prefix=default_system_prefix_for_specialist(sid, lang),
|
||||
tool_tags=default_tool_tags_for_specialist(sid),
|
||||
)
|
||||
for sid in SPECIALIST_IDS
|
||||
}
|
||||
return (
|
||||
base_agent,
|
||||
|
|
@ -299,7 +286,7 @@ def build_gateway_executor(
|
|||
viewer_username=viewer_username,
|
||||
viewer_tenant_id=viewer_tenant_id,
|
||||
)
|
||||
sid = str(specialist or "").strip().lower() or "generalist"
|
||||
sid = normalize_specialist_id(specialist)
|
||||
if sid not in specialist_profiles:
|
||||
sid = "generalist"
|
||||
prof = specialist_profiles.get(sid) or specialist_profiles["generalist"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue