Skip to main content
Use the caller that already owns the work. A run started from outside Deepline returns a durable run ID; persist it if the caller needs to resume observation.

CLI

Use a local file while you are authoring it. Check it first, then run it.
Use a named reference for a saved or Prebuilt Play:

TypeScript service or script

Persist job.id before you wait. A local timeout does not cancel the remote run; Production Play integration explains how to resume the same run and write its result once.

Inside another Play

Use ctx.runPlay(...) for a statically resolvable scalar child Play. Use ctx.tools.execute(...) only for one provider-backed operation.
See Prebuilt Plays for the child-play boundary.

Raw HTTP

Use HTTP for a non-TypeScript service, a notebook, or a scheduler that invokes an already-saved or Prebuilt Play:
For raw HTTP, the response’s run.id is the run ID. The TypeScript SDK normalizes that value to job.id (and its lower-level workflowId field). HTTP and Python owns the polling example; Runtime API reference owns the generated endpoint contract.