Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponseTextOutput

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

Overview

Wrapper for text output.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponseTextOutput

Returns a new instance of GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponseTextOutput.



14448
14449
14450
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 14448

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

Instance Attribute Details

#textArray<String>

The text output from the LLM. Corresponds to the JSON property text

Returns:

  • (Array<String>)


14441
14442
14443
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 14441

def text
  @text
end

#text_typeString

The type of text output. Corresponds to the JSON property textType

Returns:

  • (String)


14446
14447
14448
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 14446

def text_type
  @text_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14453
14454
14455
14456
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 14453

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