auto-sync: 2026-05-29 07:54:30
This commit is contained in:
@@ -262,6 +262,7 @@ class AgentSpawner:
|
||||
retry_context: str = "",
|
||||
task: Optional[Any] = None,
|
||||
project_config: Optional[Dict[str, Any]] = None,
|
||||
spawn_type: str = "executor", # executor | discussion | review
|
||||
) -> str:
|
||||
"""构建 Agent spawn 的消息(优先用 BootstrapBuilder,fallback 用模板)
|
||||
|
||||
@@ -270,7 +271,14 @@ class AgentSpawner:
|
||||
retry_context: 重试上下文(前轮产出摘要 + 审查意见)
|
||||
task: Task 对象(BootstrapBuilder 用)
|
||||
project_config: 项目配置(BootstrapBuilder 用)
|
||||
spawn_type: spawn 类型(executor=执行, discussion=讨论, review=审查)
|
||||
"""
|
||||
# discussion 类型直接用模板(不走 BootstrapBuilder)
|
||||
if spawn_type == "discussion":
|
||||
return self._build_discussion_prompt(
|
||||
task_id, title, description, must_haves,
|
||||
project_id, agent_id)
|
||||
|
||||
# 尝试 BootstrapBuilder
|
||||
if self.bootstrap_builder and task is not None:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user