Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateStatelessSuggestionRequest
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateStatelessSuggestionRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb
Overview
The request message for Conversations.GenerateStatelessSuggestion.
Instance Attribute Summary collapse
-
#conversation_context ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContext
Context of the conversation, including transcripts.
-
#generator ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator
LLM generator.
-
#generator_name ⇒ String
The resource name of the existing created generator.
-
#trigger_events ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2GenerateStatelessSuggestionRequest
constructor
A new instance of GoogleCloudDialogflowV2GenerateStatelessSuggestionRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2GenerateStatelessSuggestionRequest
Returns a new instance of GoogleCloudDialogflowV2GenerateStatelessSuggestionRequest.
10693 10694 10695 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10693 def initialize(**args) update!(**args) end |
Instance Attribute Details
#conversation_context ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContext
Context of the conversation, including transcripts.
Corresponds to the JSON property conversationContext
10674 10675 10676 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10674 def conversation_context @conversation_context end |
#generator ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator
LLM generator.
Corresponds to the JSON property generator
10679 10680 10681 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10679 def generator @generator end |
#generator_name ⇒ String
The resource name of the existing created generator. Format: projects//
locations//generators/
Corresponds to the JSON property generatorName
10685 10686 10687 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10685 def generator_name @generator_name end |
#trigger_events ⇒ Array<String>
Optional. A list of trigger events. Generator will be triggered only if it's
trigger event is included here.
Corresponds to the JSON property triggerEvents
10691 10692 10693 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10691 def trigger_events @trigger_events end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10698 10699 10700 10701 10702 10703 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10698 def update!(**args) @conversation_context = args[:conversation_context] if args.key?(:conversation_context) @generator = args[:generator] if args.key?(:generator) @generator_name = args[:generator_name] if args.key?(:generator_name) @trigger_events = args[:trigger_events] if args.key?(:trigger_events) end |