GoodMem
ReferenceClient SDKsJavaScriptModels

Memory Model

Memory Model documentation for JavaScript SDK

Properties

NameTypeDescriptionNotes
memoryIdStringUnique identifier of the memory
spaceIdStringID of the space containing this memory
originalContentFileOriginal content (only included if requested)[optional]
originalContentLengthNumberSize in bytes of the inline original content[optional]
originalContentSha256StringSHA-256 digest of the inline original content, hex encoded[optional]
originalContentRefStringReference to external content location[optional]
contentTypeStringMIME type of the content
processingStatusStringProcessing status of the memory
pageImageStatusStringProcessing status of page-image extraction for this memory
pageImageCountNumberNumber of extracted page-image renditions linked to this memory
metadata{String: Object}Additional metadata for the memory[optional]
createdAtNumberTimestamp when the memory was created (milliseconds since epoch)
updatedAtNumberTimestamp when the memory was last updated (milliseconds since epoch)
createdByIdStringID of the user who created this memory
updatedByIdStringID of the user who last updated this memory
chunkingConfigChunkingConfiguration[optional]
processingHistoryProcessingHistory[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);