Documentation
    Preparing search index...

    Interface MockLlmState

    In-memory state of the mock LLM service.

    const state = service.mock.state();
    state.generations; // provider generations started so far
    interface MockLlmState {
        active: Map<string, Map<string, MockLlmActiveGeneration>>;
        connections: MockLlmConnection[];
        epoch: number;
        generations: number;
        handles: Map<string, Map<string, MockLlmHandle>>;
        scripted: MockLlmScriptedAnswer[];
    }
    Index

    Properties

    active: Map<string, Map<string, MockLlmActiveGeneration>>

    Window → request id → generation.

    connections: MockLlmConnection[]

    Seeded connections.

    epoch: number

    Current handle epoch.

    generations: number

    Generations started (would-be provider calls).

    handles: Map<string, Map<string, MockLlmHandle>>

    Window → handle → entry.

    Scripted answers consumed in order by the next generations.