Interface AttachMemoryWikiOptions

interface AttachMemoryWikiOptions {
    memory: WikiAttachableMemory;
    memoryDir: string;
    agentId: string;
    llm: ((prompt) => Promise<string>);
    chunk: ((text) => {
        text: string;
    }[]);
    tools?: unknown[];
    now?: (() => string);
    cluster?: ((traces) => Promise<ClusterAssignment[]>);
}

Properties

memoryDir: string
agentId: string
llm: ((prompt) => Promise<string>)

LLM merge caller for the compiler (caller supplies its configured model).

Type declaration

    • (prompt): Promise<string>
    • Parameters

      • prompt: string

      Returns Promise<string>

chunk: ((text) => {
    text: string;
}[])

Chunk text for indexing (e.g. SemanticChunker.chunk).

Type declaration

    • (text): {
          text: string;
      }[]
    • Parameters

      • text: string

      Returns {
          text: string;
      }[]

tools?: unknown[]

Existing agent tools to augment; read_memory_page is appended.

now?: (() => string)

ISO timestamp provider (injected for determinism).

Type declaration

    • (): string
    • Returns string

cluster?: ((traces) => Promise<ClusterAssignment[]>)

Override the default by-entity heuristic clusterer.

Type declaration

    • (traces): Promise<ClusterAssignment[]>
    • Parameters

      • traces: TraceLike[]

      Returns Promise<ClusterAssignment[]>