View Source GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer (google_api_dialogflow v0.88.3)

Represents an answer from Knowledge. Currently supports FAQ and Generative answers.

Attributes

  • answerText (type: String.t, default: nil) - The piece of text from the source that answers this suggested query.
  • faqSource (type: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerFaqSource.t, default: nil) - Populated if the prediction came from FAQ.
  • generativeSource (type: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource.t, default: nil) - Populated if the prediction was Generative.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() ::
  %GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer{
    answerText: String.t() | nil,
    faqSource:
      GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerFaqSource.t()
      | nil,
    generativeSource:
      GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource.t()
      | nil
  }

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.