Interface IOutlineHistory

Interface representing the history management API for outline operations. Provides methods to manage message history, such as adding, clearing, and listing messages. IOutlineHistory

interface IOutlineHistory {
    clear(): Promise<void>;
    list(): Promise<IOutlineMessage[]>;
    push(...messages: (IOutlineMessage | IOutlineMessage[])[]): Promise<void>;
}

Methods

Methods

  • Clears all messages from the outline history. Resets the history to an empty state.

    Returns Promise<void>

    A promise that resolves when the history is cleared.

  • Adds one or more messages to the outline history. Supports both single messages and arrays of messages for flexibility.

    Parameters

    Returns Promise<void>

    A promise that resolves when the messages are successfully added.