Skip to content

执行 API

执行代表一次完整的开发流水线运行,从计划审批到代码合并。

列出执行

http
GET /api/v1/projects/{project_id}/executions
Authorization: Bearer <token>

获取执行详情

http
GET /api/v1/executions/{execution_id}

响应 包含执行图、节点状态、时间线。

启动执行

http
POST /api/v1/executions/{execution_id}/start

取消执行

http
POST /api/v1/executions/{execution_id}/cancel

重试失败节点

http
POST /api/v1/executions/{execution_id}/retry
Content-Type: application/json

{
  "node_id": "uuid"
}

执行节点

列出节点

http
GET /api/v1/executions/{execution_id}/nodes

获取节点详情

http
GET /api/v1/executions/{execution_id}/nodes/{node_id}

包含:状态、Agent 日志、diff 统计、迭代历史。

节点状态

状态说明
pending等待依赖完成
in_progress正在执行
completed执行成功
failed执行失败
cancelled已取消

执行指标

http
GET /api/v1/executions/{execution_id}/metrics

返回:总耗时、token 使用量、成本、迭代次数等。

Forgexa — AI 软件工厂