class Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput

The output from the virtual agent.

Attributes

current_page[RW]

A Dialogflow CX conversation (session) can be described and visualized as a state machine. The states of a CX session are represented by pages. For each flow, you define many pages, where your combined pages can handle a complete conversation on the topics the flow is designed for. At any given moment, exactly one page is the current page, the current page is considered active, and the flow associated with that page is considered active. Every flow has a special start page. When a flow initially becomes active, the start page page becomes the current page. For each conversational turn, the current page will either stay the same or transition to another page. You configure each page to collect information from the end-user that is relevant for the conversational state represented by the page. For more information, see the [Page guide]( cloud.google.com/dialogflow/cx/docs/concept/page). Corresponds to the JSON property `currentPage` @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page]

diagnostic_info[RW]

Required. Input only. The diagnostic info output for the turn. Required to calculate the testing coverage. Corresponds to the JSON property `diagnosticInfo` @return [Hash<String,Object>]

differences[RW]

Output only. If this is part of a result conversation turn, the list of differences between the original run and the replay for this output, if any. Corresponds to the JSON property `differences` @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TestRunDifference>]

session_parameters[RW]

The session parameters available to the bot at this point. Corresponds to the JSON property `sessionParameters` @return [Hash<String,Object>]

status[RW]

The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [ gRPC](github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https: //cloud.google.com/apis/design/errors). Corresponds to the JSON property `status` @return [Google::Apis::DialogflowV3::GoogleRpcStatus]

text_responses[RW]

The text responses from the agent for the turn. Corresponds to the JSON property `textResponses` @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessageText>]

triggered_intent[RW]

An intent represents a user's intent to interact with a conversational agent. You can provide information for the Dialogflow API to use to match user input to an intent by adding training phrases (i.e., examples of user input) to your intent. Corresponds to the JSON property `triggeredIntent` @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dialogflow_v3/classes.rb, line 539
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dialogflow_v3/classes.rb, line 544
def update!(**args)
  @current_page = args[:current_page] if args.key?(:current_page)
  @diagnostic_info = args[:diagnostic_info] if args.key?(:diagnostic_info)
  @differences = args[:differences] if args.key?(:differences)
  @session_parameters = args[:session_parameters] if args.key?(:session_parameters)
  @status = args[:status] if args.key?(:status)
  @text_responses = args[:text_responses] if args.key?(:text_responses)
  @triggered_intent = args[:triggered_intent] if args.key?(:triggered_intent)
end