WorkflowRun

data

The run as the platform last described it: its status, its input, and every step with what it produced, what it cost and how many attempts it took.

a snapshotattempts are keptwarnings per step
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

id · workflowIdstring

The run, and the workflow it came from.

statusstring

running · waiting · succeeded · failed · cancelled.

inputobject

What it was started with.

stepsarray

One entry per step — see below.

creditsinteger

The whole run.

startedAt · endedAtstring

When.

A step entry

{
  id: "write", type: "model.generate", status: "succeeded",
  output: { text: "…", usage: { … } },
  credits: 4,
  error: "",
  warnings: [],
  attempts: [ /* replaced attempts, kept */ ],
  startedAt: "…", endedAt: "…"
}
{
    "id": "write", "type": "model.generate", "status": "succeeded",
    "output": {"text": "…", "usage": {}},
    "credits": 4,
    "error": "",
    "warnings": [],
    "attempts": [],             # replaced attempts, kept
    "startedAt": "…", "endedAt": "…",
}

output is what templates read

{{steps.write.output.text}} reads exactly this. The shape depends on the step type — each one is documented on its own page.

attempts keeps what was replaced

A retry does not erase the failure

The replaced attempt moves into attempts, so a run that succeeded on the second try still shows what went wrong on the first. That is the record you want when something intermittent is happening.

warnings are not failures

A step can succeed and still report something worth knowing — a truncated result, a fallback taken, a value that was not what the chain expected. They are per step, and worth surfacing.

Not every step runs

A branch not taken leaves its steps untouched. Reading steps as a sequence of things that all happened is wrong on any workflow with a condition or a switch.