Documentation Index
Fetch the complete documentation index at: https://docs.emergence.ai/llms.txt
Use this file to discover all available pages before exploring further.
Memory Service
The Memory Service provides multi-agent memory management for CRAFT. It gives agents the ability to remember information across conversations, accumulate domain knowledge, and personalize responses based on prior interactions. Memory endpoints are available through the Platform Utils API (/v2/api) and are backed by the em-memory-service storage engine.
Key Concepts
Memories
A memory is a discrete, self-contained piece of information extracted from conversations, documents, or agent messages. Each memory has:- Content: The information itself (a fact, preference, insight, or relationship)
- Type: The category of memory (
fact,preference,observation,glossary,policy, etc., see Memory Types below) - Name: An optional label for direct retrieval
- Metadata: Source, timestamp, confidence, access count
- Embeddings: Vector representation for semantic search
Context Packs
A Context Pack is the storage container for a related set of memories. Context Packs organize memories by domain or purpose and provide efficient retrieval. See Context Packs for the detailed architecture.Memory Lifecycle
Memories move through a managed lifecycle:- Created, extracted from input and scored for worthiness
- Active, retrievable and contributing to agent context
- Degraded, fading through summarization tiers (full → key facts → existence marker)
- Archived, removed from active retrieval but preserved for audit
- Re-promoted, any retrieval restores a degraded memory to active state
Memory Types
Memories are categorized into two groups:General Types
| Type | Purpose |
|---|---|
fact | Factual information about entities, processes, or systems |
experience | Learned behaviors from past interactions |
observation | Observed patterns or anomalies |
instruction | Directives or guidelines for agent behavior |
preference | User or agent preferences (e.g., preferred output format) |
summary | Condensed summaries of conversations or data |
Data Governance Enrichment Types
| Type | Purpose |
|---|---|
glossary | Business glossary terms and definitions |
ontology | Domain ontology relationships and classifications |
textual_pattern | Regex or text patterns identified in data columns |
kpi | Key performance indicator definitions |
exemplar | Representative data examples for reference |
join | Table join relationships and foreign key mappings |
numeric_pattern | Numeric distribution patterns in data columns |
policy | Data governance policies and rules |
Integration with em-runtime Utils
Memory endpoints are exposed through theem-runtime-utils service via the /v2/api prefix. Authentication uses the same JWT tokens as all other platform APIs.
Add a Memory to a Context Pack
Memories are created within a context pack using the pack’s ID:List Memories
Memories support retrieval through a two-phase search API:Retrieve by ID
Update a Memory
Delete a Memory
Batch Operations
Scoping
Memories are scoped per organization by default, matching the platform’s multi-tenancy model. Theorg_id is extracted from the JWT token, no separate header is needed:
org_id claim determines which organization’s memories are accessible.
Related
Context Packs
Deep dive into the Context Pack storage architecture.
Memory Integration Guide
How-to guide for integrating memory into your agents.
Utils API Reference
Full memory endpoint API reference.

