GoodMem
ReferenceClient SDKsPython SDKRequests

MemoryCreationRequest

MemoryCreationRequest documentation for Python SDK

Request body for creating a new Memory. A Memory represents content stored in a space.

Properties

NameTypeDescriptionNotes
validateobject[optional]
space_idstrID of the space where this memory will be stored
original_contentstrOriginal content as plain text (use either this or originalContentB64)[optional]
original_content_b64strOriginal content as base64-encoded binary data (use either this or originalContent)[optional]
original_content_refstrReference to external content location[optional]
content_typestrMIME type of the content
metadataobjectAdditional metadata for the memory[optional]
chunking_configChunkingConfiguration[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

On this page