AnswerQueryRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Request message for ConversationalSearchService.AnswerQuery method.
Attributes |
|
---|---|
Name | Description |
serving_config |
str
Required. The resource name of the Search serving config, such as projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config ,
or
projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config .
This field is used to identify the serving configuration
name, set of models used to make the search.
|
query |
google.cloud.discoveryengine_v1beta.types.Query
Required. Current user query. |
session |
str
The session resource name. Not required. When session field is not set, the API is in sessionless mode. We support auto session mode: users can use the wildcard symbol - as session ID. A new ID will be automatically
generated and assigned.
|
safety_spec |
google.cloud.discoveryengine_v1beta.types.AnswerQueryRequest.SafetySpec
Model specification. |
related_questions_spec |
google.cloud.discoveryengine_v1beta.types.AnswerQueryRequest.RelatedQuestionsSpec
Related questions specification. |
answer_generation_spec |
google.cloud.discoveryengine_v1beta.types.AnswerQueryRequest.AnswerGenerationSpec
Answer generation specification. |
search_spec |
google.cloud.discoveryengine_v1beta.types.AnswerQueryRequest.SearchSpec
Search specification. |
query_understanding_spec |
google.cloud.discoveryengine_v1beta.types.AnswerQueryRequest.QueryUnderstandingSpec
Query understanding specification. |
asynchronous_mode |
bool
Asynchronous mode control. If enabled, the response will be returned with answer/session resource name without final answer. The API users need to do the polling to get the latest status of answer/session by calling ConversationalSearchService.GetAnswer or ConversationalSearchService.GetSession method. |
user_pseudo_id |
str
A unique identifier for tracking visitors. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single device. This unique identifier should not change if the visitor logs in or out of the website. This field should NOT have a fixed value such as unknown_visitor .
The field must be a UTF-8 encoded string with a length limit
of 128 characters. Otherwise, an INVALID_ARGUMENT error
is returned.
|
user_labels |
MutableMapping[str, str]
The user labels applied to a resource must meet the following requirements: - Each resource can have multiple labels, up to a maximum of 64. - Each label must be a key-value pair. - Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. - Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. - The key portion of a label must be unique. However, you can use the same key with multiple resources. - Keys must start with a lowercase letter or international character. See `Google Cloud Document |
Classes
AnswerGenerationSpec
AnswerGenerationSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Answer generation specification.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
QueryUnderstandingSpec
QueryUnderstandingSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Query understanding specification.
RelatedQuestionsSpec
RelatedQuestionsSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Related questions specification.
SafetySpec
SafetySpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Safety specification.
SearchSpec
SearchSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Search specification.
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
UserLabelsEntry
UserLabelsEntry(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,
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 |