StreamProcessingResult
Defined in: agent/stream-processor.ts:128
Result of stream processing.
Properties
Section titled “Properties”didExecuteGadgets
Section titled “didExecuteGadgets”didExecuteGadgets:
boolean
Defined in: agent/stream-processor.ts:136
Whether any gadgets were executed
finalMessage
Section titled “finalMessage”finalMessage:
string
Defined in: agent/stream-processor.ts:148
The final message (after interceptors)
finishReason
Section titled “finishReason”finishReason:
string|null
Defined in: agent/stream-processor.ts:139
LLM finish reason
outputs
Section titled “outputs”outputs:
StreamEvent[]
Defined in: agent/stream-processor.ts:130
All emitted events
rawResponse
Section titled “rawResponse”rawResponse:
string
Defined in: agent/stream-processor.ts:145
The raw accumulated response text
shouldBreakLoop
Section titled “shouldBreakLoop”shouldBreakLoop:
boolean
Defined in: agent/stream-processor.ts:133
Whether the loop should break
usage?
Section titled “usage?”
optionalusage:TokenUsage
Defined in: agent/stream-processor.ts:142
Token usage (including cached token counts when available)