MemoryCreationRequest
MemoryCreationRequest documentation for Python SDK
Request body for creating a new Memory. A Memory represents content stored in a space.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| validate | object | [optional] | |
| space_id | str | ID of the space where this memory will be stored | |
| original_content | str | Original content as plain text (use either this or originalContentB64) | [optional] |
| original_content_b64 | str | Original content as base64-encoded binary data (use either this or originalContent) | [optional] |
| original_content_ref | str | Reference to external content location | [optional] |
| content_type | str | MIME type of the content | |
| metadata | object | Additional metadata for the memory | [optional] |
| chunking_config | ChunkingConfiguration | [optional] |
Example
from goodmem_client.models.memory_creation_request import MemoryCreationRequest
# TODO update the JSON string below
json = "{}"
# create an instance of MemoryCreationRequest from a JSON string
memory_creation_request_instance = MemoryCreationRequest.from_json(json)
# print the JSON string representation of the object
print(MemoryCreationRequest.to_json())
# convert the object into a dict
memory_creation_request_dict = memory_creation_request_instance.to_dict()
# create an instance of MemoryCreationRequest from a dict
memory_creation_request_from_dict = MemoryCreationRequest.from_dict(memory_creation_request_dict)↑ Back to Python SDK ↑ Back to Python SDK ↑ Back to Python SDK