View Source GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2SearchKnowledgeAnswer (google_api_dialogflow v0.78.0)

Represents a SearchKnowledge answer.

Attributes

  • answer (type: String.t, default: nil) - The piece of text from the knowledge base documents that answers the search query
  • answerRecord (type: String.t, default: nil) - The name of the answer record. Format: projects//locations//answer Records/
  • answerSources (type: list(GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2SearchKnowledgeAnswerAnswerSource.t), default: nil) - All sources used to generate the answer.
  • answerType (type: String.t, default: nil) - The type of the answer.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2SearchKnowledgeAnswer{
    answer: String.t() | nil,
    answerRecord: String.t() | nil,
    answerSources:
      [
        GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2SearchKnowledgeAnswerAnswerSource.t()
      ]
      | nil,
    answerType: String.t() | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.