Skip to content
Français

SummarizeHistoryOptions

import type { SummarizeHistoryOptions } from "@elie-laloum/outpost";
  • triggerCharactersOptional
    number | undefined
    Length of the JSON-serialized history above which a summary is made, default 400000 characters.
  • keepRecentMessagesOptional
    number | undefined
    Minimum number of recent messages kept after the summary, default 6; the cut moves back to the previous assistant message.
export interface SummarizeHistoryOptions {
  readonly triggerCharacters?: number;
  readonly keepRecentMessages?: number;
}