View Source GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaAnswer (google_api_discovery_engine v0.16.0)

Defines an answer.

Attributes

  • answerSkippedReasons (type: list(String.t), default: nil) - Additional answer-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.
  • answerText (type: String.t, default: nil) - The textual answer.
  • citations (type: list(GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaAnswerCitation.t), default: nil) - Citations.
  • completeTime (type: DateTime.t, default: nil) - Output only. Answer completed timestamp.
  • createTime (type: DateTime.t, default: nil) - Output only. Answer creation timestamp.
  • name (type: String.t, default: nil) - Immutable. Fully qualified name projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*
  • queryUnderstandingInfo (type: GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaAnswerQueryUnderstandingInfo.t, default: nil) - Query understanding information.
  • references (type: list(GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaAnswerReference.t), default: nil) - References.
  • relatedQuestions (type: list(String.t), default: nil) - Suggested related questions.
  • state (type: String.t, default: nil) - The state of the answer generation.
  • steps (type: list(GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaAnswerStep.t), default: nil) - Answer generation steps.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaAnswer{
    answerSkippedReasons: [String.t()] | nil,
    answerText: String.t() | nil,
    citations:
      [
        GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaAnswerCitation.t()
      ]
      | nil,
    completeTime: DateTime.t() | nil,
    createTime: DateTime.t() | nil,
    name: String.t() | nil,
    queryUnderstandingInfo:
      GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaAnswerQueryUnderstandingInfo.t()
      | nil,
    references:
      [
        GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaAnswerReference.t()
      ]
      | nil,
    relatedQuestions: [String.t()] | nil,
    state: String.t() | nil,
    steps:
      [
        GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaAnswerStep.t()
      ]
      | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.