View Source GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseConversationalSearchResult (google_api_retail v0.19.1)
This field specifies all related information that is needed on client side for UI rendering of conversational retail search.
Attributes
-
additionalFilter
(type:GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter.t
, default:nil
) - This is the incremental additional filters implied from the current user answer. User should add the suggested addition filters to the previous SearchRequest.filter, and use the merged filter in the follow up search request. -
additionalFilters
(type:list(GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter.t)
, default:nil
) - This field is deprecated but will be kept for backward compatibility. There is expected to have only one additional filter and the value will be the same to the same as fieldadditional_filter
. -
conversationId
(type:String.t
, default:nil
) - Conversation UUID. This field will be stored in client side storage to maintain the conversation session with server and will be used for next search request's SearchRequest.ConversationalSearchSpec.conversation_id to restore conversation state in server. -
followupQuestion
(type:String.t
, default:nil
) - The follow-up question. e.g.,What is the color?
-
refinedQuery
(type:String.t
, default:nil
) - The current refined query for the conversational search. This field will be used in customer UI that the query in the search bar should be replaced with the refined query. For example, if SearchRequest.query isdress
and next SearchRequest.ConversationalSearchSpec.UserAnswer.text_answer isred color
, which does not match any product attribute value filters, the refined query will bedress, red color
. -
suggestedAnswers
(type:list(GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseConversationalSearchResultSuggestedAnswer.t)
, default:nil
) - The answer options provided to client for the follow-up question.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseConversationalSearchResult{ additionalFilter: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter.t() | nil, additionalFilters: [ GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter.t() ] | nil, conversationId: String.t() | nil, followupQuestion: String.t() | nil, refinedQuery: String.t() | nil, suggestedAnswers: [ GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseConversationalSearchResultSuggestedAnswer.t() ] | nil }