Skip to main content

Interface: SteerItem

Defined in: packages/core/src/core/steer.ts:18

Steering a running tool loop: words that arrive while a bot is working are merged into the conversation at the next step boundary, so the model reads them before its next call instead of after the whole turn.

ExecutionRun.steer does this for external executors; this is the same for the native loop. A host passes a SteerSource as ProcessOptions.steer. createSteerQueue() is the in-process source; a host whose producer runs in another process (a second request on serverless) implements drain over its own store, so the queue is wherever the truth is.

Each drained item becomes a message appended to that step's prompt (AI SDK carries prepareStep message overrides into later steps, so it stays). A steer_merged event reports what was merged and when; record it with the conversation, because the loop's response messages do not include it.

Properties​

content​

content: string

Defined in: packages/core/src/core/steer.ts:19


role?​

optional role?: "user" | "system"

Defined in: packages/core/src/core/steer.ts:21

user (default) — a person's words. system — an operator note; only some models accept a mid-conversation system message.