unified-llm-client
    Preparing search index...

    Interface SessionStore<TSnapshot>

    Contract for durable conversation persistence backends.

    interface SessionStore<TSnapshot = unknown> {
        delete(
            sessionId: string,
            tenantId?: string,
            options?: SessionStoreDeleteOptions,
        ): Promise<void>;
        get(
            sessionId: string,
            tenantId?: string,
        ): Promise<SessionRecord<TSnapshot> | null>;
        list(options?: SessionStoreListOptions): Promise<SessionMeta[]>;
        listPage?(options?: SessionStoreListOptions): Promise<SessionStorePage>;
        set(
            sessionId: string,
            snapshot: TSnapshot,
            options?: SessionStoreSetOptions,
        ): Promise<SessionRecord<TSnapshot>>;
    }

    Type Parameters

    • TSnapshot = unknown

    Implemented by

    Index

    Methods