ResumeOptions
Defined in: agents/src/types.ts:852
Extends
Section titled “Extends”Omit<RunOptions, |"runId"|"session"|"historyLimit"|"prepareHistory"|"modelSettings"|"enabledTools"|"providerSessionId">
Properties
Section titled “Properties”answers?
Section titled “answers?”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.
bindModelProvider?
Section titled “bindModelProvider?”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.
Inherited from
Section titled “Inherited from”context?
Section titled “context?”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.
Inherited from
Section titled “Inherited from”host: AgentHost & object;Defined in: agents/src/types.ts:862
Type Declaration
Section titled “Type Declaration”authorizeResume
Section titled “authorizeResume”authorizeResume: (snapshot) => void | Promise<void>;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
snapshot |
TreeNode |
Returns
Section titled “Returns”void | Promise<void>
Overrides
Section titled “Overrides”memory?
Section titled “memory?”optional memory?: MemoryBinding;Defined in: agents/src/types.ts:832
Trusted binding from authentication. Never select a scope from model arguments.
Inherited from
Section titled “Inherited from”onEvent?
Section titled “onEvent?”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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
event |
AgentEvent |
Returns
Section titled “Returns”void | Promise<void>
Inherited from
Section titled “Inherited from”onLifecycle?
Section titled “onLifecycle?”optional onLifecycle?: LifecycleHook;Defined in: agents/src/types.ts:837
Privileged observer, inherited by children. Return values and failures are ignored.
Inherited from
Section titled “Inherited from”session?
Section titled “session?”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.
signal?
Section titled “signal?”optional signal?: AbortSignal;Defined in: agents/src/types.ts:817