Skip to content

Documentation / @agentick/shared / ModelResponseEvent

Type Alias: ModelResponseEvent ​

ModelResponseEvent = object & StreamEventBase

Defined in: streaming.ts:605

DevTools event: Model response (pipeline visibility)

Type Declaration ​

engineState? ​

optional engineState: object

Engine state (how response is ingested into timeline)

engineState.newTimelineEntries? ​

optional newTimelineEntries: unknown[]

engineState.shouldStop? ​

optional shouldStop: boolean

engineState.stopReason? ​

optional stopReason: unknown

engineState.toolCalls? ​

optional toolCalls: unknown[]

executionId? ​

optional executionId: string

modelOutput? ​

optional modelOutput: object

ModelOutput (normalized Agentick format)

modelOutput.message? ​

optional message: unknown

modelOutput.model? ​

optional model: string

modelOutput.stopReason? ​

optional stopReason: string

modelOutput.toolCalls? ​

optional toolCalls: object[]

modelOutput.usage? ​

optional usage: UsageStats

providerOutput? ​

optional providerOutput: unknown

Provider output (raw SDK response, may be reconstructed for streaming)

type ​

type: "model_response"

Released under the ISC License.