ADK for TypeScript: API Reference
    Preparing search index...

    Interface BaseMemoryService

    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(request: SearchMemoryRequest): Promise<SearchMemoryResponse>;
    }

    Implemented by

    Methods

    • Adds a session to the memory.

      Parameters

      • session: Session

        The session to add to the memory.

      Returns Promise<void>

      A promise that resolves when the session is added to the memory.