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
-
#context_references ⇒ Hash<String,Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContextReference>
Optional.
-
#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.
-
#security_settings ⇒ String
Optional.
-
#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.
11667 11668 11669 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11667 def initialize(**args) update!(**args) end |
Instance Attribute Details
#context_references ⇒ Hash<String,Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContextReference>
Optional. A section of ingested context information. The key is the name of
the context reference and the value contains the contents of the context
reference. The key is used to incorporate ingested context references to
enhance the generator.
Corresponds to the JSON property contextReferences
11634 11635 11636 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11634 def context_references @context_references end |
#conversation_context ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContext
Context of the conversation, including transcripts.
Corresponds to the JSON property conversationContext
11639 11640 11641 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11639 def conversation_context @conversation_context end |
#generator ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator
LLM generator.
Corresponds to the JSON property generator
11644 11645 11646 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11644 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
11650 11651 11652 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11650 def generator_name @generator_name end |
#security_settings ⇒ String
Optional. Name of the CX SecuritySettings which is used to redact generated
response. If this field is empty, try to fetch v2 security_settings, which is
a project level setting. If this field is empty and no v2 security_settings
set up in this project, no redaction will be done. Format: projects//
locations//securitySettings/.
Corresponds to the JSON property securitySettings
11659 11660 11661 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11659 def security_settings @security_settings 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
11665 11666 11667 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11665 def trigger_events @trigger_events end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11672 11673 11674 11675 11676 11677 11678 11679 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11672 def update!(**args) @context_references = args[:context_references] if args.key?(:context_references) @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) @security_settings = args[:security_settings] if args.key?(:security_settings) @trigger_events = args[:trigger_events] if args.key?(:trigger_events) end |