Memory Model
Memory Model documentation for Python SDK
Memory object containing stored content and metadata
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| memory_id | str | Unique identifier of the memory | |
| space_id | str | ID of the space containing this memory | |
| original_content | bytearray | Original content (only included if requested) | [optional] |
| original_content_length | int | Size in bytes of the inline original content | [optional] |
| original_content_sha256 | str | SHA-256 digest of the inline original content, hex encoded | [optional] |
| original_content_ref | str | Reference to external content location | [optional] |
| content_type | str | MIME type of the content | |
| processing_status | str | Processing status of the memory | |
| metadata | object | Additional metadata for the memory | [optional] |
| created_at | int | Timestamp when the memory was created (milliseconds since epoch) | |
| updated_at | int | Timestamp when the memory was last updated (milliseconds since epoch) | |
| created_by_id | str | ID of the user who created this memory | |
| updated_by_id | str | ID of the user who last updated this memory | |
| chunking_config | ChunkingConfiguration | [optional] | |
| processing_history | ProcessingHistory | [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