Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponseTextOutput

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) ⇒ GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponseTextOutput

Returns a new instance of GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponseTextOutput.



6424
6425
6426
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 6424

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>)


6417
6418
6419
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 6417

def text
  @text
end

#text_typeString

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

Returns:

  • (String)


6422
6423
6424
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 6422

def text_type
  @text_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6429
6430
6431
6432
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 6429

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