Class HierarchicalStrategy

Implements

Constructors

Methods

Properties

Constructors

  • Parameters

    • Optional llmInvoker: ((prompt) => Promise<string>)

      Writes the summaries. Without one, or when it fails or answers nothing, a segment's summary is its user messages, cut to 80 characters each, and no levels are merged. Either way the window's summary message holds the newest summary whole, within the tokens the segment held, and the older ones only as far as the window has room for them under the compaction threshold.

        • (prompt): Promise<string>
        • Parameters

          • prompt: string

          Returns Promise<string>

    Returns HierarchicalStrategy

Methods

Properties

name: "hierarchical" = ...