Fluxo di lavoro

runStep()

workflow.runStep(stepId, { fromRun?, input?, steps? }) → Promise<Step>

Corre un passo da sola, con il contesto che scelse. Nessuna run è creata e nessuna run è cambiata — è la via per tentar un passo prima di implementar una catena.

changes nothing16 minuteshuman steps are refused
Using Python?

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

const step = await workflow.runStep("write", {
  input: { since: "2026-10-01" },
  steps: { read: { output: { result: [{ title: "…" }] } } },
});

console.log(step.status, step.output, step.credits);
step = workflow.run_step(
    "write",
    input={"since": "2026-10-01"},
    steps={"read": {"output": {"result": [{"title": "…"}]}}},
)

print(step["status"], step["output"], step["credits"])
stepIdstringobrigatório

- Quale passo.

fromRunstring

Prende le sortit a monte da esta run existente.

inputobject

L'input di run. Overrides fromRun's.

stepsobject

Produttori fornese a mano. Questo vince fromRun.

Tres modi per dar il context

Tu haiUs
Un vero run che ha arrivât a tal luntfromRun
Una run, ma tu vuoi input differentefromRun e input
Nada — tu costruis il stepsteps, con le forme che si aspetta

Retorno

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

Corre davvero

Un pas cun efìcit hat esefècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècècèeèe

Un scriva di stoccatura scrie, un deploys deploys, un pas de mail envia. Solo il record di run è intoccat. Testa i pasi che calcule, non quelli che agis — o li indica a algo desechente.

Un passo umano non s'impossìa zarpar

Risponde step_not_executable — non c'è nulla da executare, solo qualcosa da approvare. Un identificator sconosciut risponde step_not_found.

Sessixi minuti

Un agente step o un HTTP Il passo può durar molto tempo, quindi questo appello eleva il tecto usual del cliente ben al di sopra di esso, invece di abbandonare il lavoro che ancora sta in funzione.