Class HybridStrategy

Implements

Constructors

Methods

Properties

Constructors

  • Parameters

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

      Writes the narrative summary. Without one, or when it fails or answers nothing, the summary is the ten most important observation notes, or without notes the segment's first three user messages, cut to the tokens the segment held less the summary message's header, after an earlier summary in the segment, carried forward as far as the window has room for it under the compaction threshold.

        • (prompt): Promise<string>
        • Parameters

          • prompt: string

          Returns Promise<string>

    • Optional observer: MemoryObserver

      Extracts observation notes from the segment.

    • Optional reflector: MemoryReflector

      Consolidates the notes into memory traces.

    Returns HybridStrategy

Methods

Properties

name: "hybrid" = ...