Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponse
- Inherits:
-
Object
- Object
- Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponse
- 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 storing the generative response for a chart.
Instance Attribute Summary collapse
-
#chart_spec ⇒ Hash<String,Object>
The chart spec for the data.
-
#generated_sql_query ⇒ String
The generated SQL query from the LLM.
-
#text_message ⇒ Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponseTextOutput
Wrapper for text output.
-
#text_output ⇒ String
The text output from the LLM.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponse
constructor
A new instance of GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponse
Returns a new instance of GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponse.
15191 15192 15193 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 15191 def initialize(**args) update!(**args) end |
Instance Attribute Details
#chart_spec ⇒ Hash<String,Object>
The chart spec for the data. This will be specified in the vega-lite or vega
format.
Corresponds to the JSON property chartSpec
15170 15171 15172 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 15170 def chart_spec @chart_spec end |
#generated_sql_query ⇒ String
The generated SQL query from the LLM. Will be populated during the chart
building phase. The generated SQL will be cached in the corresponding chart
resource.
Corresponds to the JSON property generatedSqlQuery
15177 15178 15179 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 15177 def generated_sql_query @generated_sql_query end |
#text_message ⇒ Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponseTextOutput
Wrapper for text output.
Corresponds to the JSON property textMessage
15182 15183 15184 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 15182 def @text_message end |
#text_output ⇒ String
The text output from the LLM. Will be populated during the chart building
phase. For a reloaded chart, this will NOT be populated. May contain THOUGHT
or a FINAL response or some in-progress response.
Corresponds to the JSON property textOutput
15189 15190 15191 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 15189 def text_output @text_output end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15196 15197 15198 15199 15200 15201 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 15196 def update!(**args) @chart_spec = args[:chart_spec] if args.key?(:chart_spec) @generated_sql_query = args[:generated_sql_query] if args.key?(:generated_sql_query) @text_message = args[:text_message] if args.key?(:text_message) @text_output = args[:text_output] if args.key?(:text_output) end |