TranscriptItem class

Represents a single item in a conversation transcript with the AI assistant or user.

Constructors

TranscriptItem.new({required String id, required String role, required String content, required DateTime timestamp, bool? isPartial})
TranscriptItem.fromJson(Map<String, dynamic> json)

Properties

content String
The text content of the transcript item
final
hashCode int
The hash code for this object.
no setteroverride
id String
Unique identifier for the transcript item
final
isPartial bool?
Optional flag indicating if the item is a partial response
final
role String
Role of the speaker - 'user' for user speech, 'assistant' for AI response
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp DateTime
Timestamp when the transcript item was created
final

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.
override