Represents a chat sequence with its segments and metadata.

ChatSequence

interface ChatSequence {
    id: string;
    metadata: SequenceMetadata;
    segments: ChatSegment[];
    sourceFile: string;
    totalSegments: number;
    withSegments(newSegments: ChatSegment[]): ChatSequence;
}

Implemented by

Properties

id: string

The ID of the chat sequence.

The metadata associated with the chat sequence. withSegments - Returns a new chat sequence with the given segments.

segments: ChatSegment[]

The segments of the chat sequence.

sourceFile: string

The source file of the chat sequence.

totalSegments: number

The total number of segments in the chat sequence.

Methods