Skip to content

RunOptions

optional abortSignal?: AbortSignal;

optional agentId?: string;

optional callerInstructions?: string;

Caller-supplied instructions merged into the system prompt via a run-lifetime system note — never pushed into the model message array.


optional deployment?: DeploymentTraceContext;

Immutable release identity already authorized and pinned by the deployment host.


optional driver?: ChannelDriver;

optional flowName?: string;

Creation-only with kind: 'flow'. Sets activeFlow on the minted run. Ignored on resume.


optional historyDelta?: ModelMessage[];

optional idempotencyKey?: string;

Stable key for this inbound user message; duplicate webhook retries are ignored (H2).


optional input?: UserContent;

The user turn: plain text, or AI SDK multimodal content (text + file/image/audio parts).


optional kind?: RunKind;

When omitted, opens the session’s conversation run. 'flow' mints a new headless flow run (server-side id). Caller-supplied runId is resume-only and wins over this field.


optional runId?: string;

Address an existing run in this session. Unknown and cross-session values fail closed. Omit to open the session’s conversation run.


optional seedMessages?: ModelMessage[];

optional selection?: ResolvedSelection;

optional sessionId?: string;

optional signalDelivery?: SignalDelivery;

optional userId?: string;

optional wake?: WakeOptions;

Agent-initiated (proactive) turn — mutually exclusive with input. The runtime appends a wake note instead of a user message and runs the normal loop: free-conversation agents proactively re-engage; an active flow re-prompts its current step. Schedule wakes with createWakeJobRunner.