import { LLMChain } from "../../chains/llm_chain.js"; import { PromptTemplate } from "../../prompts/index.js"; import { BaseLLM } from "../../llms/base.js"; import { Document } from "../../document.js"; import { TimeWeightedVectorStoreRetriever } from "../../retrievers/time_weighted.js"; import { BaseMemory, InputValues, OutputValues } from "../../memory/base.js"; export type GenerativeAgentMemoryConfig = { reflectionThreshold?: number; importanceWeight?: number; verbose?: boolean; maxTokensLimit?: number; }; export declare class GenerativeAgentMemory extends BaseMemory { llm: BaseLLM; memoryRetriever: TimeWeightedVectorStoreRetriever; verbose: boolean; reflectionThreshold?: number; currentPlan: string[]; importanceWeight: number; private aggregateImportance; private maxTokensLimit; queriesKey: string; mostRecentMemoriesTokenKey: string; addMemoryKey: string; relevantMemoriesKey: string; relevantMemoriesSimpleKey: string; mostRecentMemoriesKey: string; nowKey: string; reflecting: boolean; constructor(llm: BaseLLM, memoryRetriever: TimeWeightedVectorStoreRetriever, config?: GenerativeAgentMemoryConfig); getRelevantMemoriesKey(): string; getMostRecentMemoriesTokenKey(): string; getAddMemoryKey(): string; getCurrentTimeKey(): string; get memoryKeys(): string[]; chain(prompt: PromptTemplate): LLMChain; static parseList(text: string): string[]; getTopicsOfReflection(lastK?: number): Promise; getInsightsOnTopic(topic: string, now?: Date): Promise; pauseToReflect(now?: Date): Promise; scoreMemoryImportance(memoryContent: string): Promise; addMemory(memoryContent: string, now?: Date): Promise; fetchMemories(observation: string, _now?: Date): Promise; formatMemoriesDetail(relevantMemories: Document[]): string; formatMemoriesSimple(relevantMemories: Document[]): string; getMemoriesUntilLimit(consumedTokens: number): Promise; get memoryVariables(): string[]; loadMemoryVariables(inputs: InputValues): Promise>; saveContext(_inputs: InputValues, outputs: OutputValues): Promise; clear(): void; }