Class MemMachineClient
Main API client for interacting with the MemMachine RESTful service.
This client provides a unified interface for memory management, project operations, and server health checks. It handles configuration and serves as the gateway to your organizations and projects.
| Name | Type | Description |
|---|---|---|
options | ClientOptions | Configuration for the client, including base URL and optional API key. |
Methods
project()
Creates a MemMachineProject instance for managing a specific project and its memories.
| Name | Type | Description |
|---|---|---|
projectContext | ProjectContext | Object containing org_id and project_id. |
getProjects()
Retrieves a list of all projects accessible to the client on the MemMachine server.
Promise<Project[]>— A list of Project entities.
MemMachineAPIErrorif the server request fails.
healthCheck()
Checks the connection and health status of the MemMachine server.
Promise<HealthStatus>— The HealthStatus object containing server uptime and version.

