auto-sync: 2026-05-17 18:36:01
This commit is contained in:
+10
-1
@@ -158,8 +158,15 @@ class AgentSpawner:
|
||||
must_haves: str = "",
|
||||
project_id: str = "",
|
||||
agent_id: str = "",
|
||||
current_status: str = "claimed",
|
||||
retry_context: str = "",
|
||||
) -> str:
|
||||
"""构建 Agent spawn 的消息(使用 prompt 模板)"""
|
||||
"""构建 Agent spawn 的消息(使用 prompt 模板)
|
||||
|
||||
Args:
|
||||
current_status: 任务当前状态(动态生成状态机提示)
|
||||
retry_context: 重试上下文(前轮产出摘要 + 审查意见)
|
||||
"""
|
||||
return SPAWN_PROMPT_TEMPLATE.format(
|
||||
project_id=project_id,
|
||||
task_id=task_id,
|
||||
@@ -171,6 +178,8 @@ class AgentSpawner:
|
||||
agent_id=agent_id,
|
||||
api_host=self.api_host,
|
||||
api_port=self.api_port,
|
||||
current_status=current_status or "claimed",
|
||||
retry_context=retry_context or "",
|
||||
)
|
||||
|
||||
async def spawn_full_agent(
|
||||
|
||||
Reference in New Issue
Block a user