Base interface for memory services

The service provides functionalities to ingest sessions into memory so that the memory can be used for user queries.

interface BaseMemoryService {
    addSessionToMemory(session: Session): Promise<void>;
    searchMemory(params: {
        appName: string;
        userId: string;
        query: string;
    }): Promise<SearchMemoryResponse>;
}

Implemented by

Methods

  • Searches for sessions that match the query

    Parameters

    • params: {
          appName: string;
          userId: string;
          query: string;
      }

      Search parameters

      • appName: string

        The name of the application

      • userId: string

        The id of the user

      • query: string

        The query to search for

    Returns Promise<SearchMemoryResponse>

    A SearchMemoryResponse containing the matching memories