GenerateResponse class
Response from text generation
Constructors
Properties
- avgConfidence → double?
-
Average confidence across all generated tokens (null if not tracked)
final
- completionTokens → int
-
Number of tokens generated
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- latencyMs → int?
-
Time taken for generation in milliseconds
final
- needsCloudHandoff → bool
-
Whether cloud handoff was recommended during generation
final
- promptTokens → int
-
Number of tokens in the prompt
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String
-
Generated text content
final
- tokensPerSecond → double?
-
Tokens per second throughput
no setter
- totalTokens → int
-
Total tokens used (prompt + completion)
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited