RetrieveMemoryRequest
RetrieveMemoryRequest documentation for Python SDK
Request body for semantic memory retrieval with optional embedder weight overrides.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| message | str | Primary query/message for semantic search. | |
| context | List[ContextItem] | Optional context items (text or binary) to provide additional context for the search. | [optional] |
| space_keys | List[SpaceKey] | List of spaces to search with optional per-embedder weight overrides. | |
| requested_size | int | Maximum number of memories to retrieve. | [optional] |
| fetch_memory | bool | Whether to include full Memory objects in the response. | [optional] |
| fetch_memory_content | bool | Whether to include memory content in the response. Requires fetchMemory=true. | [optional] |
| post_processor | PostProcessor | [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