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

The response message for Conversations.SearchKnowledge.

Attributes

  • answers (type: list(GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2SearchKnowledgeAnswer.t), default: nil) - Most relevant snippets extracted from articles in the given knowledge base, ordered by confidence.
  • rewrittenQuery (type: String.t, default: nil) - The rewritten query used to search knowledge.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2SearchKnowledgeResponse{
    answers:
      [
        GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2SearchKnowledgeAnswer.t()
      ]
      | nil,
    rewrittenQuery: String.t() | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.