Accumulates streaming chunks into a complete response. Handles content accumulation, tool call accumulation, thinking content, and token tracking.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Add a streaming chunk to the accumulator
Add a streaming chunk to the accumulator
Attributes
Add thinking content delta directly
Add thinking content delta directly
Attributes
Clear the accumulator state
Clear the accumulator state
Attributes
Get the current accumulated content
Get the current accumulated content
Attributes
Get the current accumulated thinking content
Get the current accumulated thinking content
Attributes
Get the current tool calls
Get the current tool calls
Attributes
Check if there is any thinking content
Check if there is any thinking content
Attributes
Check if accumulation is complete
Check if accumulation is complete
Attributes
Get a snapshot of the current state
Get a snapshot of the current state
Attributes
Convert accumulated data to a Completion
Convert accumulated data to a Completion
Attributes
Update token counts
Update token counts
Attributes
Update token counts including thinking tokens
Update token counts including thinking tokens