Skip to main content
Per-stream overrides.

Example

Extends

Properties

cwd?

Working directory for this fresh session.

Inherited from

RunOptions.cwd

includePartialMessages?

Yield text/reasoning delta envelopes in addition to assembled messages.

maxBudgetUsd?

Maximum run cost before an error_max_budget result.

Inherited from

RunOptions.maxBudgetUsd

maxTurns?

Maximum model turns before an error_max_turns result.

Inherited from

RunOptions.maxTurns

model?

provider/model id for this session.

Inherited from

RunOptions.model

outputFormat?

Structured-output contract for this session.

Inherited from

RunOptions.outputFormat

permission?

Server permission rules, distinct from permissionMode.

Inherited from

RunOptions.permission

permissionMode?

Runtime permission behavior for this session.

Inherited from

RunOptions.permissionMode

signal?

Abort the active turn; terminal error_aborted still resolves normally.

Inherited from

RunOptions.signal

title?

Explicit session title; otherwise the prompt’s first line is used.

Inherited from

RunOptions.title