View Source GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DetectIntentResponse (google_api_dialogflow v0.78.0)

The message returned from the DetectIntent method.

Attributes

  • allowCancellation (type: boolean(), default: nil) - Indicates whether the partial response can be cancelled when a later response arrives. e.g. if the agent specified some music as partial response, it can be cancelled.
  • outputAudio (type: String.t, default: nil) - The audio data bytes encoded as specified in the request. Note: The output audio is generated based on the values of default platform text responses found in the query_result.response_messages field. If multiple default text responses exist, they will be concatenated when generating audio. If no default platform text responses exist, the generated audio content will be empty. In some scenarios, multiple output audio fields may be present in the response structure. In these cases, only the top-most-level audio output has content.
  • outputAudioConfig (type: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3OutputAudioConfig.t, default: nil) - The config used by the speech synthesizer to generate the output audio.
  • queryResult (type: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3QueryResult.t, default: nil) - The result of the conversational query.
  • responseId (type: String.t, default: nil) - Output only. The unique identifier of the response. It can be used to locate a response in the training example set or for reporting issues.
  • responseType (type: String.t, default: nil) - Response type.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DetectIntentResponse{
    allowCancellation: boolean() | nil,
    outputAudio: String.t() | nil,
    outputAudioConfig:
      GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3OutputAudioConfig.t()
      | nil,
    queryResult:
      GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3QueryResult.t()
      | nil,
    responseId: String.t() | nil,
    responseType: String.t() | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.