统一模型接入与用量管理 立即注册
蓝天
原站参考文档

以下为胜算云公开资料。文中的原站账号、地址、定价和专有服务不属于蓝天;蓝天可用模型以当前 sub2api 配置为准。接入蓝天请先查看 快速开始。

查看原文

GET List run step executions

GET /loom/v1/users/me/runs/{run}/stepExecutions
所属分组:Runs · 任务运行
Returns each node execution of one run: the stored input snapshot, outputs, errors, Code attempts with diagnostics, model call bills and Loop rounds. Only the caller who owns both the run and the template version it ran can read it; Market runs are not readable. Files appear as "artifact:<id>"; storage locations and signed URLs are never returned.

BASE URLhttps://router.shengsuanyun.com/api
认证方式Authorization: Bearer YOUR_API_KEY

端点列表

← 上一页
下载任务结果工作簿
下一页 →
Workflow viewer · · 接口汇总

接口参考

以下为原文协议定义与示例,原站地址不代表蓝天已开通对应能力。蓝天接入地址和模型以本地配置为准。

蓝天 API 密钥
GET/loom/v1/users/me/runs/{run}/stepExecutionsList run step executions

Returns each node execution of one run: the stored input snapshot, outputs, errors, Code attempts with diagnostics, model call bills and Loop rounds. Only the caller who owns both the run and the template version it ran can read it; Market runs are not readable. Files appear as "artifact:<id>"; storage locations and signed URLs are never returned.

请求参数

参数位置 / 类型说明
run必填path / anyRun ID
taskIdquery / anyOnly this task
pageSizequery / anyPage size. Default 20, max 100.
pageTokenquery / anyPage token

请求示例

参考地址:https://loomloom.shengsuanyun.com。路径参数与凭据需替换;非 JSON 请求体需按对应格式准备。

curl -X GET 'https://loomloom.shengsuanyun.com/loom/v1/users/me/runs/{run}/stepExecutions' \
  -H 'Authorization: Bearer YOUR_API_KEY'

响应

200 OK

application/json

字段类型说明
itemsarray
展开结构

array

数组元素
字段类型说明
artifactsarray
展开结构

array

数组元素
字段类型说明
artifactIdstring
contentSha256string
mimeTypestring
portIdstring
sizeBytesinteger
codeobject
展开结构
字段类型说明
attemptsarray
展开结构

array

数组元素
字段类型说明
attemptIndexinteger
committedboolean
errorCodestring
errorMessagestring
finishedAtUnixinteger
startedAtUnixinteger
statusstring
diagnosticobject
errorCodestring
errorMessagestring
executionIdstring
executionIndexinteger
finishedAtUnixinteger
inputobject
inputUnavailablestring
iterationinteger
loopIdstring
modelobject
展开结构
字段类型说明
completionTokensinteger
costinteger
currencystring
gatewayRequestIdstring
imageCountinteger
modelNamestring
promptTokensinteger
providerstring
providerRequestIdstring
runtimeKindstring
sourceRowIndexinteger
startedAtUnixinteger
statusstring
stepIdstring
taskIdstring
valuesarray
展开结构

array

数组元素
字段类型说明
portIdstring
valueany
loopIterationsarrayLoopIterations are the rounds of every Loop in the tasks on this page.
展开结构

LoopIterations are the rounds of every Loop in the tasks on this page.

array

数组元素
字段类型说明
decisionActionstring
decisionKindstring
decisionPortIdstring
decisionStepIdstring
finishedAtUnixinteger
iterationinteger
loopIdstring
reasonstring
startedAtUnixinteger
stateobject
stateOmittedboolean
statusstring
taskIdstring
nextPageTokenstring
totalCountinteger
{
  "items": [
    {
      "artifacts": [
        {
          "artifactId": "string",
          "contentSha256": "string",
          "mimeType": "string",
          "portId": "string",
          "sizeBytes": 0
        }
      ],
      "code": {
        "attempts": [
          {
            "attemptIndex": 0,
            "committed": false,
            "errorCode": "string",
            "errorMessage": "string",
            "finishedAtUnix": 0,
            "startedAtUnix": 0,
            "status": "string"
          }
        ],
        "diagnostic": {}
      },
      "errorCode": "string",
      "errorMessage": "string",
      "executionId": "string",
      "executionIndex": 0,
      "finishedAtUnix": 0,
      "input": {},
      "inputUnavailable": "string",
      "iteration": 0,
      "loopId": "string",
      "model": {
        "completionTokens": 0,
        "cost": 0,
        "currency": "string",
        "gatewayRequestId": "string",
        "imageCount": 0,
        "modelName": "string",
        "promptTokens": 0,
        "provider": "string",
        "providerRequestId": "string"
      },
      "runtimeKind": "string",
      "sourceRowIndex": 0,
      "startedAtUnix": 0,
      "status": "string",
      "stepId": "string",
      "taskId": "string",
      "values": [
        {
          "portId": "string",
          "value": "string"
        }
      ]
    }
  ],
  "loopIterations": [
    {
      "decisionAction": "string",
      "decisionKind": "string",
      "decisionPortId": "string",
      "decisionStepId": "string",
      "finishedAtUnix": 0,
      "iteration": 0,
      "loopId": "string",
      "reason": "string",
      "startedAtUnix": 0,
      "state": {},
      "stateOmitted": false,
      "status": "string",
      "taskId": "string"
    }
  ],
  "nextPageToken": "string",
  "totalCount": 0
}
400 Bad Request

application/json

字段类型说明
codestring
errorstring
{
  "code": "string",
  "error": "string"
}
401 Unauthorized

application/json

字段类型说明
codestring
errorstring
{
  "code": "string",
  "error": "string"
}
403 Forbidden

application/json

字段类型说明
codestring
errorstring
{
  "code": "string",
  "error": "string"
}
404 Not Found

application/json

字段类型说明
codestring
errorstring
{
  "code": "string",
  "error": "string"
}
500 Internal Server Error

application/json

字段类型说明
codestring
errorstring
{
  "code": "string",
  "error": "string"
}