agentskit.js

DurableRunner

Auto-generated API reference for DurableRunner.

Interface: DurableRunner

Defined in: durable.ts:52

#Properties

#history

history: () => Promise<StepRecord<unknown>[]>

Defined in: durable.ts:60

Read the full log for the current run.

#Returns

Promise<StepRecord<unknown>[]>


#reset

reset: () => Promise<void>

Defined in: durable.ts:62

Drop the log for the current run (dangerous — breaks resume).

#Returns

Promise<void>


#step

step: <TResult>(stepId, fn, options?) => Promise<TResult>

Defined in: durable.ts:58

Execute fn under the name stepId. If the step has already been recorded in the log for this runId, return the recorded result without re-running. Otherwise run, record, return.

#Type Parameters

TResult

TResult

#Parameters

stepId

string

fn

() => TResult | Promise<TResult>

options?
name?

string

#Returns

Promise<TResult>

Explore nearby

✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page