Transcript class

A transcript containing the conversation history of a session.

Transcripts can be used to:

  • Inspect the conversation history
  • Create a new session continuing from a previous conversation
  • Serialize and store conversations

Constructors

Transcript.fromJson(String jsonString)
Creates a Transcript from a JSON string.
factory

Properties

entries List<TranscriptEntry>
The entries in this transcript.
no setter
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
Whether this transcript is empty.
no setter
isNotEmpty bool
Whether this transcript is not empty.
no setter
json Map<String, dynamic>
The raw JSON representation of this transcript.
no setter
length int
The number of entries in this transcript.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](int index) TranscriptEntry
Access entries by index.