Creating Plot Twists
    Preparing search index...

    Type Alias ChatSession

    A finished conversation, handed to the twist's onEnded callback.

    type ChatSession = {
        id: Uuid;
        threadId: Uuid;
        startedAt: Date;
        endedAt: Date;
        durationSeconds: number;
        endedBy: ChatEndReason;
        turns: ChatTurn[];
    }
    Index

    Properties

    id: Uuid
    threadId: Uuid
    startedAt: Date
    endedAt: Date
    durationSeconds: number
    endedBy: ChatEndReason
    turns: ChatTurn[]

    Every turn, in order, user and agent interleaved.