Class: Google::Apis::CesV1::ErrorHandlingSettingsEndSessionConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/ces_v1/classes.rb,
lib/google/apis/ces_v1/representations.rb,
lib/google/apis/ces_v1/representations.rb

Overview

Configuration for ending the session in case of system errors (e.g. LLM errors) .

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ErrorHandlingSettingsEndSessionConfig

Returns a new instance of ErrorHandlingSettingsEndSessionConfig.



2725
2726
2727
# File 'lib/google/apis/ces_v1/classes.rb', line 2725

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#escalate_sessionBoolean Also known as: escalate_session?

Optional. Whether to escalate the session in EndSession. If session is escalated, metadata in EndSession will contain session_escalated = true. See https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/ deploy/google-telephony-platform#transfer_a_call_to_a_human_agent for details. Corresponds to the JSON property escalateSession

Returns:

  • (Boolean)


2722
2723
2724
# File 'lib/google/apis/ces_v1/classes.rb', line 2722

def escalate_session
  @escalate_session
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2730
2731
2732
# File 'lib/google/apis/ces_v1/classes.rb', line 2730

def update!(**args)
  @escalate_session = args[:escalate_session] if args.key?(:escalate_session)
end