Memory Model
Memory Model documentation for JavaScript SDK
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| memoryId | String | Unique identifier of the memory | |
| spaceId | String | ID of the space containing this memory | |
| originalContent | File | Original content (only included if requested) | [optional] |
| originalContentLength | Number | Size in bytes of the inline original content | [optional] |
| originalContentSha256 | String | SHA-256 digest of the inline original content, hex encoded | [optional] |
| originalContentRef | String | Reference to external content location | [optional] |
| contentType | String | MIME type of the content | |
| processingStatus | String | Processing status of the memory | |
| pageImageStatus | String | Processing status of page-image extraction for this memory | |
| pageImageCount | Number | Number of extracted page-image renditions linked to this memory | |
| metadata | {String: Object} | Additional metadata for the memory | [optional] |
| createdAt | Number | Timestamp when the memory was created (milliseconds since epoch) | |
| updatedAt | Number | Timestamp when the memory was last updated (milliseconds since epoch) | |
| createdById | String | ID of the user who created this memory | |
| updatedById | String | ID of the user who last updated this memory | |
| chunkingConfig | ChunkingConfiguration | [optional] | |
| processingHistory | ProcessingHistory | [optional] |
Enum: ProcessingStatusEnum
-
UNSPECIFIED(value:"UNSPECIFIED") -
PENDING(value:"PENDING") -
PROCESSING(value:"PROCESSING") -
COMPLETED(value:"COMPLETED") -
FAILED(value:"FAILED")
Enum: PageImageStatusEnum
-
UNSPECIFIED(value:"UNSPECIFIED") -
PENDING(value:"PENDING") -
PROCESSING(value:"PROCESSING") -
COMPLETED(value:"COMPLETED") -
FAILED(value:"FAILED")
Usage Example
// Memory objects are returned by the API
const memory = await memoriesApi.getMemory(memoryId);
console.log('Memory ID:', memory.memoryId);
console.log('Status:', memory.processingStatus);
console.log('Content type:', memory.contentType);
console.log('Page images:', memory.pageImageCount);