Interface WikiCompilerOptions

interface WikiCompilerOptions {
    store: WikiCompilerStorePort;
    llm: ((prompt) => Promise<string>);
    cluster: ((traces) => Promise<ClusterAssignment[]>);
    now?: (() => string);
}

Properties

Properties

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

LLM merge call: given a prompt, return the full updated page body.

Type declaration

    • (prompt): Promise<string>
    • Parameters

      • prompt: string

      Returns Promise<string>

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

Group traces into target pages. Injected (LLM- or heuristic-backed).

Type declaration

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

      • traces: TraceLike[]

      Returns Promise<ClusterAssignment[]>

now?: (() => string)

Current ISO timestamp provider (injected for determinism in tests).

Type declaration

    • (): string
    • Returns string