Member Junction
    Preparing search index...

    Type Alias ConversationContextMetadata

    Metadata stamped on messages returned by ConversationEngine.GetAgentContextWindow.

    Type-locality tradeoff: the agent framework's AgentChatMessageMetadata (in @memberjunction/ai-core-plus) carries these same optional fields, but this package cannot import from ai-core-plus — ai-core-plus depends on core-entities, so importing it here would create a package cycle. This structural type is therefore defined locally and kept assignment-compatible with AgentChatMessageMetadata; if you add a field here, mirror it there.

    type ConversationContextMetadata = {
        conversationDetailId?: string;
        isConversationSummary?: boolean;
        sequence?: number;
        summaryBoundarySequence?: number;
    }
    Index

    Properties

    conversationDetailId?: string

    ID of the ConversationDetail row this message came from

    isConversationSummary?: boolean

    True only on the synthetic first message carrying the persisted conversation summary

    sequence?: number

    ConversationDetail.Sequence of the row this message came from

    summaryBoundarySequence?: number

    On the summary message: the boundary row's Sequence. The summary covers every row with Sequence below this value; the boundary row itself and everything after are included raw in the window.