Class RetrieveMemoriesRequest (1.122.0)

RetrieveMemoriesRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Request message for MemoryBankService.RetrieveMemories.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
similarity_search_params google.cloud.aiplatform_v1beta1.types.RetrieveMemoriesRequest.SimilaritySearchParams
Parameters for semantic similarity search based retrieval. This field is a member of oneof_ retrieval_params.
simple_retrieval_params google.cloud.aiplatform_v1beta1.types.RetrieveMemoriesRequest.SimpleRetrievalParams
Parameters for simple (non-similarity search) retrieval. This field is a member of oneof_ retrieval_params.
parent str
Required. The resource name of the ReasoningEngine to retrieve memories from. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}
scope MutableMapping[str, str]
Required. The scope of the memories to retrieve. A memory must have exactly the same scope (Memory.scope) as the scope provided here to be retrieved (same keys and values). Order does not matter, but it is case-sensitive.

Classes

ScopeEntry

ScopeEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
Name Description
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.

SimilaritySearchParams

SimilaritySearchParams(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Parameters for semantic similarity search based retrieval.

SimpleRetrievalParams

SimpleRetrievalParams(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Parameters for simple (non-similarity search) retrieval.

Methods

RetrieveMemoriesRequest

RetrieveMemoriesRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Request message for MemoryBankService.RetrieveMemories.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields