AccumulatedChoice class
A read-only snapshot of a single accumulated choice's state.
Each instance corresponds to one of the n choices in the request.
For standard requests (n=1), there is a single AccumulatedChoice.
Use ChatStreamAccumulator.choices to access per-choice state.
- Annotations
-
- @immutable
Properties
- content → String
-
The accumulated text content.
final
- finishReason → FinishReason?
-
The finish reason.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasReasoningContent → bool
-
Whether there is any reasoning content.
no setter
- hasToolCalls → bool
-
Whether there are any tool calls.
no setter
- index → int
-
The index of this choice.
final
- logprobs → Logprobs?
-
Log probability information.
final
- reasoning → String
-
OpenRouter only. The accumulated reasoning summary.
final
- reasoningContent → String
-
DeepSeek R1 / vLLM only. The accumulated reasoning content.
final
-
reasoningDetails
→ List<
ReasoningDetail> -
OpenRouter only. The accumulated reasoning details.
final
- refusal → String
-
The accumulated refusal content.
final
- role → String?
-
The message role.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
toolCalls
→ List<
ToolCall> -
The accumulated tool calls.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited