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 — VertexAiMemoryBankService | ADK for TypeScript: API Reference - v2.5.0

  • VertexAiMemoryBankService

Class VertexAiMemoryBankService

Implementation of the BaseMemoryService using Vertex AI Memory Bank.

Implements

  • BaseMemoryService
  • Defined in core/src/memory/vertex_ai_memory_bank_service.ts:125

Constructors

constructor

  • new VertexAiMemoryBankService(
        options: VertexAiMemoryBankServiceOptions,
    ): VertexAiMemoryBankService

    Parameters

    • options: VertexAiMemoryBankServiceOptions

    Returns VertexAiMemoryBankService

    • Defined in core/src/memory/vertex_ai_memory_bank_service.ts:132

Methods

addEventsToMemory

  • addEventsToMemory(
        request: {
            appName: string;
            customMetadata?: Record<string, unknown>;
            events: Event[];
            sessionId?: string;
            userId: string;
        },
    ): Promise<void>

    Adds events to Vertex AI Memory Bank via memories.generate.

    Parameters

    • request: {
          appName: string;
          customMetadata?: Record<string, unknown>;
          events: Event[];
          sessionId?: string;
          userId: string;
      }

    Returns Promise<void>

    • Defined in core/src/memory/vertex_ai_memory_bank_service.ts:181

addMemory

  • addMemory(
        request: {
            appName: string;
            customMetadata?: Record<string, unknown>;
            memories: MemoryEntry[];
            userId: string;
        },
    ): Promise<void>

    Adds explicit memory items using Vertex Memory Bank.

    When a MemoryEntry.id is set, it is forwarded as the memoryId of the created memory, so the caller picks the last component of the memory resource name instead of letting the service generate one. An explicit customMetadata['memoryId'] takes precedence over MemoryEntry.id.

    The id is forwarded unvalidated, so an id the API rejects fails the create call. Vertex accepts up to 63 characters from [a-z0-9-], starting with a letter and ending with a letter or number.

    Parameters

    • request: {
          appName: string;
          customMetadata?: Record<string, unknown>;
          memories: MemoryEntry[];
          userId: string;
      }

    Returns Promise<void>

    • Defined in core/src/memory/vertex_ai_memory_bank_service.ts:208

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.

    Implementation of BaseMemoryService.addSessionToMemory

    • Defined in core/src/memory/vertex_ai_memory_bank_service.ts:170

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.

    Implementation of BaseMemoryService.searchMemory

    • Defined in core/src/memory/vertex_ai_memory_bank_service.ts:221
Constructors
constructor
Methods
addEventsToMemoryaddMemoryaddSessionToMemorysearchMemory
You are visitor 01402792 — 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.