GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • ADK for TypeScript: API Reference

This view

  • Original page
  • New address

GeezerVison is showing adk.dev — BaseMemoryService | ADK for TypeScript: API Reference - v2.5.0

  • BaseMemoryService

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

  • InMemoryMemoryService
  • VertexAiMemoryBankService
  • VertexAiRagMemoryService
  • Defined in core/src/memory/base_memory_service.ts:44

Methods

addSessionToMemory

  • addSessionToMemory(session: Session): Promise<void>

    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.

    • Defined in core/src/memory/base_memory_service.ts:51

searchMemory

  • searchMemory(request: SearchMemoryRequest): Promise<SearchMemoryResponse>

    Searches for sessions that match the query.

    Parameters

    • request: SearchMemoryRequest

      The request to search memory.

    Returns Promise<SearchMemoryResponse>

    A promise that resolves to SearchMemoryResponse containing the matching memories.

    • Defined in core/src/memory/base_memory_service.ts:60
Methods
addSessionToMemorysearchMemory
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.