Required. The resource name of the servingConfigs.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.
Request body
The request body contains data with the following structure:
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.
userLabels
map (key: string, value: string)
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-28 UTC."],[[["The `answer` method uses a POST request to `https://discoveryengine.googleapis.com/v1beta/{servingConfig=projects/*/locations/*/collections/*/engines/*/servingConfigs/*}:answer` and employs gRPC Transcoding syntax in its URL."],["The `servingConfig` path parameter is required and specifies the serving configuration resource name to identify the set of models used for the answer generation."],["The request body must be supplied as JSON with a `query` field being required, along with other fields such as `session`, `safetySpec`, `relatedQuestionsSpec`, `groundingSpec`, `answerGenerationSpec`, `searchSpec`, `queryUnderstandingSpec`, `asynchronousMode`, `userPseudoId`, `userLabels`, and `endUserSpec`."],["A successful response returns an `AnswerQueryResponse` object."],["Authorization for this method requires the `https://www.googleapis.com/auth/cloud-platform` OAuth scope, and the `discoveryengine.servingConfigs.answer` IAM permission on the `servingConfig` resource."]]],[]]