运行步骤 delta 对象 (v1)
Legacy

表示运行步骤增量,即流式处理期间运行步骤上任何更改的字段。source

运行步骤的标识符,可在 API 终端节点中引用。source

对象类型,始终为thread.run.step.delta.source

包含在 run 步骤中已更改的字段的 delta。source

OBJECT 运行步骤 delta 对象 (v1)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  "id": "step_123",
  "object": "thread.run.step.delta",
  "delta": {
    "step_details": {
      "type": "tool_calls",
      "tool_calls": [
        {
          "index": 0,
          "id": "call_123",
          "type": "code_interpreter",
          "code_interpreter": { "input": "", "outputs": [] }
        }
      ]
    }
  }
}