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:
Deprecated: This field is deprecated. Streaming Answer API will be supported.
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.
userPseudoId
string
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-07-30 UTC."],[[["\u003cp\u003eThe \u003ccode\u003ePOST\u003c/code\u003e request to \u003ccode\u003ehttps://discoveryengine.googleapis.com/v1/{servingConfig=projects/*/locations/*/collections/*/engines/*/servingConfigs/*}:answer\u003c/code\u003e is used to query for answers, using gRPC Transcoding syntax.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eservingConfig\u003c/code\u003e path parameter is required and specifies the resource name of the serving configuration to be used, such as \u003ccode\u003eprojects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must include a \u003ccode\u003equery\u003c/code\u003e object containing the user's current query, and also it can include specifications such as \u003ccode\u003esafetySpec\u003c/code\u003e, \u003ccode\u003erelatedQuestionsSpec\u003c/code\u003e, \u003ccode\u003egroundingSpec\u003c/code\u003e, \u003ccode\u003eanswerGenerationSpec\u003c/code\u003e, \u003ccode\u003esearchSpec\u003c/code\u003e, and \u003ccode\u003equeryUnderstandingSpec\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eA unique \u003ccode\u003euserPseudoId\u003c/code\u003e is required for tracking visitors, which should be a UTF-8 encoded string with a length of up to 128 characters, and \u003ccode\u003euserLabels\u003c/code\u003e can also be provided.\u003c/p\u003e\n"],["\u003cp\u003eTo make this request, the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e is required, along with the IAM permission \u003ccode\u003ediscoveryengine.servingConfigs.answer\u003c/code\u003e on the \u003ccode\u003eservingConfig\u003c/code\u003e resource.\u003c/p\u003e\n"]]],[],null,[]]