Skip to main content
The server utilizes a standardized set of types and models to ensure that data is validated and typed consistently across the Service and Router layers. These types are the “Source of Truth” for how the server interprets incoming requests.

API Enumerations

Enums are used to route logic within the service layer and categorize data in the persistent stores.

MemoryType

Defined in memmachine_common.api, this enum determines which store and service logic a request should target.

EpisodeType

Used within episodic memory to distinguish between different kinds of events.

Core Specification Models (DTOs)

The server relies on Pydantic models defined in spec.py to validate and parse incoming data.

MemoryMessage

The primary unit of ingestion for Episodic memory.

SemanticFeature

The standardized output format for knowledge retrieved from the Semantic store.

Content and Serialization

ContentType (Enum)

Specifies the format of data stored within an entry.
While the current implementation primarily uses STRING, the server architecture is designed to support future serialization of vector embeddings or binary objects without altering the core schema.

Legacy Structures

The GroupConfiguration and MemoryContext objects from v1 are deprecated in the v2 API. The server now uses an Org/Project/Session hierarchy for secure data isolation, which is managed via the _WithOrgAndProj base model in spec.py.