Skip to main content
MemMachineClient is the primary interface for managing episodic and semantic memory. The client is organized into logical Namespaces to improve discoverability and match the modular backend architecture.

Initialization

The client manages a persistent HTTP session, handles authentication, and provides global timeout settings for all sub-client requests.

Parameters


Namespaces

The client is divided into specialized sub-clients. Accessing these allows you to perform operations specific to those domains.

Core Client Methods

While most operations live in namespaces, the root client provides session management and raw request capabilities.

request

Make an authenticated HTTP request using the client’s internal session.

close

Cleanly shut down the HTTP connection pool. This is called automatically if using the client as a context manager.

health_check

A convenience method to verify connectivity to the server.
Returns: A dictionary containing status, service, and version.

Usage Patterns

Using a context manager ensures that connections are released even if an error occurs.

Error Handling

The SDK raises custom RestError exceptions for API-level validation or logic errors, allowing for granular error catching.