Contains the information about a chat segment.

ChatSegment

interface ChatSegment {
    content: string;
    endIndex: number;
    id: string;
    metadata: ChatMetadata;
    sequenceId: string;
    startIndex: number;
    timestamp: Date;
}

Implemented by

Properties

content: string

The content of the chat segment.

endIndex: number

The end index of the chat segment.

id: string

The ID of the chat segment.

metadata: ChatMetadata

The metadata associated with the chat segment.

sequenceId: string

The ID of the chat sequence to which the segment belongs.

startIndex: number

The start index of the chat segment.

timestamp: Date

The timestamp of the chat segment.