Skip to content

@codesoul-co/hypha-memory / memorybank-managed-client ​

Using this module ​

Use the Memorybank managed client module for binding external or local providers to Hypha ports. It exports 1 class, 1 interface.

Import from the package entrypoint ​

ts
import {
  MemoryBankManagedClient,
} from '@codesoul-co/hypha-memory';

import type {
  MemoryBankManagedClientOptions,
} from '@codesoul-co/hypha-memory';

Usage patterns ​

  • Use the 1 type/interface export as static contracts in application code, adapters, or tests. Import them with import type; they do not exist at runtime.
  • The module exposes 1 class as constructable runtime implementations. Each symbol entry lists its constructor and public methods.

Public exports ​

SymbolKindSignatureDescription
MemoryBankManagedClientclassnew MemoryBankManagedClient(options: MemoryBankManagedClientOptions): MemoryBankManagedClientGoogle Vertex AI Agent Engine Memory Bank managed client.
MemoryBankManagedClientOptionsinterfaceinterface MemoryBankManagedClientOptionsMemory Bank Managed Client Options interface with 16 public fields or methods.

MemoryBankManagedClient ​

Google Vertex AI Agent Engine Memory Bank managed client.

  • Kind: class
  • Import: import { MemoryBankManagedClient } from '@codesoul-co/hypha-memory';
  • Source module: memorybank-managed-client

Declaration ​

text
export declare class MemoryBankManagedClient implements ExternalMemoryClient {
    constructor(options: MemoryBankManagedClientOptions);
    capabilities(): Promise<Partial<MemoryManagementCapabilities>>;
    add(request: MemoryAddRequest, signal?: AbortSignal): Promise<ManagedMemoryWriteResult>;
    reconcileOperation(operationId: string, signal?: AbortSignal): Promise<ManagedMemoryWriteResult | null>;
    search(request: ManagedMemorySearchRequest, signal?: AbortSignal): Promise<ManagedMemorySearchResult[]>;
    get(request: MemoryGetRequest, signal?: AbortSignal): Promise<ManagedMemoryRecord | null>;
    list(request: MemoryListRequest, signal?: AbortSignal): Promise<MemoryListResult>;
    update(request: ManagedMemoryUpdateRequest, signal?: AbortSignal): Promise<ManagedMemoryWriteResult>;
    delete(request: ManagedMemoryDeleteRequest, signal?: AbortSignal): Promise<ManagedMemoryDeleteResult>;
    history(request: MemoryHistoryRequest, signal?: AbortSignal): Promise<MemoryVersion[]>;
    health(signal?: AbortSignal): Promise<ProviderHealth>;
    close(): Promise<void>;
}

Public members ​

MemberKindSignatureDescription
addmethodadd(request: MemoryAddRequest, signal?: AbortSignal): Promise<ManagedMemoryWriteResult>Public method; parameters and return type are shown in the signature.
capabilitiesmethodcapabilities(): Promise<Partial<MemoryManagementCapabilities>>Public method; parameters and return type are shown in the signature.
closemethodclose(): Promise<void>Public method; parameters and return type are shown in the signature.
constructorconstructor(options: MemoryBankManagedClientOptions): MemoryBankManagedClientCreates an instance of this class.
deletemethoddelete(request: ManagedMemoryDeleteRequest, signal?: AbortSignal): Promise<ManagedMemoryDeleteResult>Public method; parameters and return type are shown in the signature.
getmethodget(request: MemoryGetRequest, signal?: AbortSignal): Promise<ManagedMemoryRecord | null>Public method; parameters and return type are shown in the signature.
healthmethodhealth(signal?: AbortSignal): Promise<ProviderHealth>Public method; parameters and return type are shown in the signature.
historymethodhistory(request: MemoryHistoryRequest, signal?: AbortSignal): Promise<MemoryVersion[]>Public method; parameters and return type are shown in the signature.
listmethodlist(request: MemoryListRequest, signal?: AbortSignal): Promise<MemoryListResult>Public method; parameters and return type are shown in the signature.
reconcileOperationmethodreconcileOperation(operationId: string, signal?: AbortSignal): Promise<ManagedMemoryWriteResult | null>Public method; parameters and return type are shown in the signature.
searchmethodsearch(request: ManagedMemorySearchRequest, signal?: AbortSignal): Promise<ManagedMemorySearchResult[]>Public method; parameters and return type are shown in the signature.
updatemethodupdate(request: ManagedMemoryUpdateRequest, signal?: AbortSignal): Promise<ManagedMemoryWriteResult>Public method; parameters and return type are shown in the signature.

MemoryBankManagedClientOptions ​

Memory Bank Managed Client Options interface with 16 public fields or methods.

  • Kind: interface
  • Import: import type { MemoryBankManagedClientOptions } from '@codesoul-co/hypha-memory';
  • Source module: memorybank-managed-client

Declaration ​

text
export interface MemoryBankManagedClientOptions {
    projectId: string;
    location: string;
    reasoningEngineId: string;
    accessToken?: string;
    credentialProvider?: RenewableCredentialProvider;
    fetch?: Mem0HttpFetch;
    baseUrl?: string;
    providerId?: string;
    mappingStore?: ExternalMemoryMappingStore;
    mappingProfile?: ExternalMemoryMappingRuntimeProfile;
    profileRef?: MemoryContractSpecRef;
    operationStore?: ExternalProviderOperationStore;
    operationDeadlineMs?: number;
    maxOperationAttempts?: number;
    now?: () => Date;
    allowInsecureForTests?: boolean;
}

Contract members ​

MemberKindSignatureDescription
accessTokenpropertyaccessToken?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
allowInsecureForTestspropertyallowInsecureForTests?: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.
baseUrlpropertybaseUrl?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
credentialProviderpropertycredentialProvider?: RenewableCredentialProviderPublic property; its type, readonly modifier and optionality are shown in the signature.
fetchmethodfetch?(url: string, init?: { method?: string; headers?: Record<string, string>; body?: string; signal?: AbortSignal; }): Promise<import("/Users/erwin/Downloads/codespace/Hypha/packages/memory/dist/mem0-rest-client").Mem0HttpResponse>Public method; parameters and return type are shown in the signature.
locationpropertylocation: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
mappingProfilepropertymappingProfile?: ExternalMemoryMappingRuntimeProfilePublic property; its type, readonly modifier and optionality are shown in the signature.
mappingStorepropertymappingStore?: ExternalMemoryMappingStorePublic property; its type, readonly modifier and optionality are shown in the signature.
maxOperationAttemptspropertymaxOperationAttempts?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
nowmethodnow?(): DatePublic method; parameters and return type are shown in the signature.
operationDeadlineMspropertyoperationDeadlineMs?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
operationStorepropertyoperationStore?: ExternalProviderOperationStorePublic property; its type, readonly modifier and optionality are shown in the signature.
profileRefpropertyprofileRef?: MemoryContractSpecRefPublic property; its type, readonly modifier and optionality are shown in the signature.
projectIdpropertyprojectId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
providerIdpropertyproviderId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
reasoningEngineIdpropertyreasoningEngineId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.