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.
fromRunstringPrende le sortit a monte da esta run existente.
inputobjectL'input di run. Overrides fromRun's.
stepsobjectProduttori fornese a mano. Questo vince fromRun.
Tres modi per dar il context
| Tu hai | Us |
|---|---|
| Un vero run che ha arrivât a tal lunt | fromRun |
| Una run, ma tu vuoi input differente | fromRun e input |
| Nada — tu costruis il step | steps, 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 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.