Skip to content
providerkit
GitHub

ResumeOptions

Defined in: agents/src/types.ts:852

  • Omit<RunOptions, | "runId" | "session" | "historyLimit" | "prepareHistory" | "modelSettings" | "enabledTools" | "providerSessionId">
optional answers?: Readonly<Record<string, unknown>>;

Defined in: agents/src/types.ts:867

Untrusted JSON evidence by request id. Unknown, closed and already-decided ids are refused.


optional bindModelProvider?: ModelProviderBinding;

Defined in: agents/src/types.ts:840

Per-dispatch provider instrumentation. Inherited by children, never saved in checkpoints. Does not wrap tool execution or install an ambient async context manager.

RunOptions.bindModelProvider


optional context?: ToolContext;

Defined in: agents/src/types.ts:830

Passed to tools with reserved runId, attemptId, operationId, callId, signal and reportCost supplied by the loop. reportCost(usd) adds what the call spent outside the model calls.

RunOptions.context


host: AgentHost & object;

Defined in: agents/src/types.ts:862

authorizeResume: (snapshot) => void | Promise<void>;
Parameter Type
snapshot TreeNode

void | Promise<void>

RunOptions.host


optional memory?: MemoryBinding;

Defined in: agents/src/types.ts:832

Trusted binding from authentication. Never select a scope from model arguments.

RunOptions.memory


optional onEvent?: (event) => void | Promise<void>;

Defined in: agents/src/types.ts:835

Best-effort progress from the one stream reader. Observer errors do not stop work.

Parameter Type
event AgentEvent

void | Promise<void>

RunOptions.onEvent


optional onLifecycle?: LifecycleHook;

Defined in: agents/src/types.ts:837

Privileged observer, inherited by children. Return values and failures are ignored.

RunOptions.onLifecycle


optional session?: Session;

Defined in: agents/src/types.ts:865

The run’s own session, so the turn is appended once the run settles. Resume never loads it again: the history stays the one the snapshot froze. Another session is refused.


optional signal?: AbortSignal;

Defined in: agents/src/types.ts:817

RunOptions.signal