TomTom Maps for JavaScript
    Preparing search index...

    Type Alias CompactMessagesResult

    Result returned by compactMessages.

    type CompactMessagesResult = {
        messages: ModelMessage[];
        summary: string;
        usage?: TokenUsage;
    }
    Index
    messages: ModelMessage[]

    The messages of the kept turns, to send after the summary.

    summary: string

    The summary of everything folded so far, or the previous one when nothing was folded.

    usage?: TokenUsage

    Token usage of the summary call, absent when there was nothing to fold and so no call.