GoodMem
ReferenceClient SDKsJavaModels

Memory Model

Memory Model documentation for Java SDK

Memory

Memory object containing stored content and metadata

Properties

NameTypeDescriptionNotes
memoryIdUUIDUnique identifier of the memory
spaceIdUUIDID of the space containing this memory
originalContentFileOriginal content (only included if requested)[optional]
originalContentLengthLongSize 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
processingStatusProcessingStatusEnumProcessing status of the memory
pageImageStatusPageImageStatusEnumProcessing status of page-image extraction for this memory
pageImageCountIntegerNumber of extracted page-image renditions linked to this memory
metadataMap<String, Object>Additional metadata for the memory[optional]
createdAtLongTimestamp when the memory was created (milliseconds since epoch)
updatedAtLongTimestamp when the memory was last updated (milliseconds since epoch)
createdByIdUUIDID of the user who created this memory
updatedByIdUUIDID of the user who last updated this memory
chunkingConfigChunkingConfiguration[optional]
processingHistoryProcessingHistory[optional]

Enum: ProcessingStatusEnum

NameValue
UNSPECIFIED"UNSPECIFIED"
PENDING"PENDING"
PROCESSING"PROCESSING"
COMPLETED"COMPLETED"
FAILED"FAILED"

Enum: PageImageStatusEnum

NameValue
UNSPECIFIED"UNSPECIFIED"
PENDING"PENDING"
PROCESSING"PROCESSING"
COMPLETED"COMPLETED"
FAILED"FAILED"

Usage Example

import ai.pairsys.goodmem.client.model.*;

// Memory objects are returned by the API
Memory memory = memoriesApi.getMemory(memoryId, false, false);
System.out.println("Memory ID: " + memory.getMemoryId());
System.out.println("Status: " + memory.getProcessingStatus());
System.out.println("Content type: " + memory.getContentType());
System.out.println("Page images: " + memory.getPageImageCount());