auto-sync: 2026-05-29 08:31:32
This commit is contained in:
@@ -277,11 +277,13 @@ class Dispatcher:
|
||||
|
||||
def _build_spawn_message(self, task: Task, agent_id: str,
|
||||
project_config: Optional[Dict],
|
||||
mode: str = "") -> str:
|
||||
mode: str = "",
|
||||
spawn_type: str = "executor") -> str:
|
||||
"""构建 Agent spawn 消息
|
||||
|
||||
Args:
|
||||
mode: 路由模式("delegate" 时生成协调员 prompt)
|
||||
spawn_type: spawn 类型(executor/discussion/review)
|
||||
"""
|
||||
# delegate 模式:生成协调员分配 prompt
|
||||
if mode == "delegate":
|
||||
@@ -300,6 +302,7 @@ class Dispatcher:
|
||||
agent_id=agent_id,
|
||||
current_status=task.status or "claimed",
|
||||
retry_context=retry_ctx,
|
||||
spawn_type=spawn_type,
|
||||
)
|
||||
# fallback
|
||||
parts = [f"Task: {task.title}"]
|
||||
|
||||
Reference in New Issue
Block a user