GoodMem
ReferenceClient SDKsPython SDKModels

Memory Model

Memory Model documentation for Python SDK

Memory object containing stored content and metadata

Properties

NameTypeDescriptionNotes
memory_idstrUnique identifier of the memory
space_idstrID of the space containing this memory
original_contentbytearrayOriginal content (only included if requested)[optional]
original_content_lengthintSize in bytes of the inline original content[optional]
original_content_sha256strSHA-256 digest of the inline original content, hex encoded[optional]
original_content_refstrReference to external content location[optional]
content_typestrMIME type of the content
processing_statusstrProcessing status of the memory
metadataobjectAdditional metadata for the memory[optional]
created_atintTimestamp when the memory was created (milliseconds since epoch)
updated_atintTimestamp when the memory was last updated (milliseconds since epoch)
created_by_idstrID of the user who created this memory
updated_by_idstrID of the user who last updated this memory
chunking_configChunkingConfiguration[optional]
processing_historyProcessingHistory[optional]

Example

from goodmem_client.models.memory import Memory

# TODO update the JSON string below
json = "{}"
# create an instance of Memory from a JSON string
memory_instance = Memory.from_json(json)
# print the JSON string representation of the object
print(Memory.to_json())

# convert the object into a dict
memory_dict = memory_instance.to_dict()
# create an instance of Memory from a dict
memory_from_dict = Memory.from_dict(memory_dict)

↑ Back to Python SDK ↑ Back to Python SDK ↑ Back to Python SDK

On this page