View Source GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3QueryResult (google_api_dialogflow v0.74.0)

Represents the result of a conversational query.

Attributes

  • currentPage (type: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3Page.t, default: nil) - The current Page. Some, not all fields are filled in this message, including but not limited to name and display_name.
  • diagnosticInfo (type: map(), default: nil) - The free-form diagnostic info. For example, this field could contain webhook call latency. The string keys of the Struct's fields map can change without notice.
  • dtmf (type: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DtmfInput.t, default: nil) - If a DTMF was provided as input, this field will contain a copy of the DTMFInput.
  • intent (type: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3Intent.t, default: nil) - The Intent that matched the conversational query. Some, not all fields are filled in this message, including but not limited to: name and display_name. This field is deprecated, please use QueryResult.match instead.
  • intentDetectionConfidence (type: number(), default: nil) - The intent detection confidence. Values range from 0.0 (completely uncertain) to 1.0 (completely certain). This value is for informational purpose only and is only used to help match the best intent within the classification threshold. This value may change for the same end-user expression at any time due to a model retraining or change in implementation. This field is deprecated, please use QueryResult.match instead.
  • languageCode (type: String.t, default: nil) - The language that was triggered during intent detection. See Language Support for a list of the currently supported language codes.
  • match (type: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3Match.t, default: nil) - Intent match result, could be an intent or an event.
  • parameters (type: map(), default: nil) - The collected session parameters. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter's entity type is a composite entity: map - Else: depending on parameter value type, could be one of string, number, boolean, null, list or map - MapValue value: - If parameter's entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
  • responseMessages (type: list(GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3ResponseMessage.t), default: nil) - The list of rich messages returned to the client. Responses vary from simple text messages to more sophisticated, structured payloads used to drive complex logic.
  • sentimentAnalysisResult (type: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3SentimentAnalysisResult.t, default: nil) - The sentiment analyss result, which depends on analyze_query_text_sentiment, specified in the request.
  • text (type: String.t, default: nil) - If natural language text was provided as input, this field will contain a copy of the text.
  • transcript (type: String.t, default: nil) - If natural language speech audio was provided as input, this field will contain the transcript for the audio.
  • triggerEvent (type: String.t, default: nil) - If an event was provided as input, this field will contain the name of the event.
  • triggerIntent (type: String.t, default: nil) - If an intent was provided as input, this field will contain a copy of the intent identifier. Format: projects//locations//agents//intents/.
  • webhookPayloads (type: list(map()), default: nil) - The list of webhook payload in WebhookResponse.payload, in the order of call sequence. If some webhook call fails or doesn't return any payload, an empty Struct would be used instead.
  • webhookStatuses (type: list(GoogleApi.Dialogflow.V3.Model.GoogleRpcStatus.t), default: nil) - The list of webhook call status in the order of call sequence.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3QueryResult{
  currentPage:
    GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3Page.t() | nil,
  diagnosticInfo: map() | nil,
  dtmf:
    GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DtmfInput.t() | nil,
  intent:
    GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3Intent.t() | nil,
  intentDetectionConfidence: number() | nil,
  languageCode: String.t() | nil,
  match: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3Match.t() | nil,
  parameters: map() | nil,
  responseMessages:
    [GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3ResponseMessage.t()]
    | nil,
  sentimentAnalysisResult:
    GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3SentimentAnalysisResult.t()
    | nil,
  text: String.t() | nil,
  transcript: String.t() | nil,
  triggerEvent: String.t() | nil,
  triggerIntent: String.t() | nil,
  webhookPayloads: [map()] | nil,
  webhookStatuses: [GoogleApi.Dialogflow.V3.Model.GoogleRpcStatus.t()] | nil
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.