GoodMem
ReferenceClient SDKsPython SDKRequests

RetrieveMemoryRequest

RetrieveMemoryRequest documentation for Python SDK

Request body for semantic memory retrieval with optional embedder weight overrides.

Properties

NameTypeDescriptionNotes
messagestrPrimary query/message for semantic search.
contextList[ContextItem]Optional context items (text or binary) to provide additional context for the search.[optional]
space_keysList[SpaceKey]List of spaces to search with optional per-embedder weight overrides.
requested_sizeintMaximum number of memories to retrieve.[optional]
fetch_memoryboolWhether to include full Memory objects in the response.[optional]
fetch_memory_contentboolWhether to include memory content in the response. Requires fetchMemory=true.[optional]
post_processorPostProcessor[optional]

Example

from goodmem_client.models.retrieve_memory_request import RetrieveMemoryRequest

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

# convert the object into a dict
retrieve_memory_request_dict = retrieve_memory_request_instance.to_dict()
# create an instance of RetrieveMemoryRequest from a dict
retrieve_memory_request_from_dict = RetrieveMemoryRequest.from_dict(retrieve_memory_request_dict)

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

On this page