unified-llm-client
    Preparing search index...

    Interface SessionStore<TSnapshot>

    Contract for durable conversation persistence backends.

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

    Type Parameters

    • TSnapshot = unknown

    Implemented by

    Index

    Methods

    Methods

    • Parameters

      • sessionId: string
      • OptionaltenantId: string

      Returns Promise<void>