Skip to content

StreamProcessingResult

Defined in: agent/stream-processor.ts:128

Result of stream processing.

didExecuteGadgets: boolean

Defined in: agent/stream-processor.ts:136

Whether any gadgets were executed


finalMessage: string

Defined in: agent/stream-processor.ts:148

The final message (after interceptors)


finishReason: string | null

Defined in: agent/stream-processor.ts:139

LLM finish reason


outputs: StreamEvent[]

Defined in: agent/stream-processor.ts:130

All emitted events


rawResponse: string

Defined in: agent/stream-processor.ts:145

The raw accumulated response text


shouldBreakLoop: boolean

Defined in: agent/stream-processor.ts:133

Whether the loop should break


optional usage: TokenUsage

Defined in: agent/stream-processor.ts:142

Token usage (including cached token counts when available)