GenerationCompleteEvent class final

Event indicating generation completed successfully.

Inheritance

Constructors

GenerationCompleteEvent({required String generationId, required ChatMessage message, required GenerationFinishReason finishReason, GenerationStats? stats})
Creates a new GenerationCompleteEvent.
const

Properties

finishReason → GenerationFinishReason
The reason generation finished.
final
generationId → String
The unique generation identifier.
final
hashCode → int
The hash code for this object.
no setterinherited
message → ChatMessage
The complete generated message.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stats → GenerationStats?
Statistics about the generation.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited