View Source GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1AnswerQueryResponse (google_api_discovery_engine v0.27.0)

Response message for ConversationalSearchService.AnswerQuery method.

Attributes

  • answer (type: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Answer.t, default: nil) - Answer resource object. If AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps is greater than 1, use Answer.name to fetch answer information using ConversationalSearchService.GetAnswer API.
  • answerQueryToken (type: String.t, default: nil) - A global unique ID used for logging.
  • session (type: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Session.t, default: nil) - Session resource object. It will be only available when session field is set and valid in the AnswerQueryRequest request.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() ::
  %GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1AnswerQueryResponse{
    answer:
      GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Answer.t()
      | nil,
    answerQueryToken: String.t() | nil,
    session:
      GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Session.t()
      | nil
  }

Functions

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.