GetOptimizeRun - 查询优化任务运行

更新时间:
复制 MD 格式

查询指定运行的状态、错误、执行进度,以及类型相关结果和产物引用。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求语法

GET /agentspace/{agentSpace}/optimizetasks/{optimizeTaskName}/runs/{optimizeRunId} HTTP/1.1

路径参数

名称

类型

必填

描述

示例值

agentSpace

string

否

AgentSpace 名称

my-agent-space

optimizeTaskName

string

否

优化任务名称

efficiency-analysis

optimizeRunId

string

否

执行实例 Id

or-20260812-0001

请求参数

名称

类型

必填

描述

示例值

当前API无需请求参数

返回参数

名称

类型

描述

示例值

object

优化任务执行详情

attemptCount

integer

已执行尝试次数

1

createTime

string

创建时间

2026-08-12T10:00:00Z

currentStage

string

当前执行阶段

attribution

errorCode

string

错误码

InternalError

errorMessage

string

错误信息

The optimize run failed.

extra

object

类型相关信息和不可变结果引用;效率分析返回冻结的 outputBindings 和 tokenPublication 发布回执

any

运行类型相关信息中单个字段的值。例如 preview 表示该运行是否为预运行。

false

finishTime

string

完成时间

2026-08-12T10:01:00Z

maxAttempts

integer

最大尝试次数

3

optimizeRunId

string

执行实例 Id

or-20260812-0001

optimizeTaskName

string

优化任务名称

efficiency-analysis

progress

object

当前执行进度,字段由任务类型定义

any

当前执行进度中单个字段的值,字段由任务类型定义;未提供进度信息时该对象可为空。

{}

requestId

string

请求 Id

9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M

startTime

string

首次开始时间

2026-08-12T10:00:01Z

status

string

执行状态

Succeeded

trajectoryCount

integer

分析轨迹数量

100

triggerType

string

触发类型

Scheduled

type

string

任务类型快照

EfficiencyAnalysis

windowEndTime

integer

分析窗口结束时间,Unix 秒

1786432690000

windowStartTime

integer

分析窗口开始时间,Unix 秒

1786432688000

示例

正常返回示例

JSON格式

{
  "attemptCount": 1,
  "createTime": "2026-08-12T10:00:00Z",
  "currentStage": "attribution",
  "errorCode": "InternalError",
  "errorMessage": "The optimize run failed.",
  "extra": {
    "key": "false"
  },
  "finishTime": "2026-08-12T10:01:00Z",
  "maxAttempts": 3,
  "optimizeRunId": "or-20260812-0001",
  "optimizeTaskName": "efficiency-analysis",
  "progress": {
    "key": "{}"
  },
  "requestId": "9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M",
  "startTime": "2026-08-12T10:00:01Z",
  "status": "Succeeded",
  "trajectoryCount": 100,
  "triggerType": "Scheduled",
  "type": "EfficiencyAnalysis",
  "windowEndTime": 1786432690000,
  "windowStartTime": 1786432688000
}

错误码

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情。