Type alias MessageMetadata<StateType>

MessageMetadata<StateType>: {
    branch: string | undefined;
    branchOptions: string[] | undefined;
    firstSeenState: ThreadState<StateType> | undefined;
    messageId: string;
}

Type Parameters

  • StateType extends Record<string, unknown>

Type declaration

  • branch: string | undefined

    The branch of the message.

  • branchOptions: string[] | undefined

    The list of branches this message is part of. This is useful for displaying branching controls.

  • firstSeenState: ThreadState<StateType> | undefined

    The first thread state the message was seen in.

  • messageId: string

    The ID of the message used.