TranscriptItem class

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

Constructors

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

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
imageUrls → List<String>?
Optional list of image URLs associated with this 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

hasImages() → bool
Helper method to check if the transcript item contains images
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