Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FewShotExample
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FewShotExample
- 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
Providing examples in the generator (i.e. building a few-shot generator) helps convey the desired format of the LLM response.
Instance Attribute Summary collapse
-
#conversation_context ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContext
Context of the conversation, including transcripts.
-
#extra_info ⇒ Hash<String,String>
Optional.
-
#output ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GeneratorSuggestion
Suggestion generated using a Generator.
-
#summarization_section_list ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationSectionList
List of summarization sections.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2FewShotExample
constructor
A new instance of GoogleCloudDialogflowV2FewShotExample.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2FewShotExample
Returns a new instance of GoogleCloudDialogflowV2FewShotExample.
11402 11403 11404 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11402 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
11383 11384 11385 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11383 def conversation_context @conversation_context end |
#extra_info ⇒ Hash<String,String>
Optional. Key is the placeholder field name in input, value is the value of
the placeholder. E.g. instruction contains "@price", and ingested data has <"
price", "10">
Corresponds to the JSON property extraInfo
11390 11391 11392 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11390 def extra_info @extra_info end |
#output ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GeneratorSuggestion
Suggestion generated using a Generator.
Corresponds to the JSON property output
11395 11396 11397 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11395 def output @output end |
#summarization_section_list ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationSectionList
List of summarization sections.
Corresponds to the JSON property summarizationSectionList
11400 11401 11402 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11400 def summarization_section_list @summarization_section_list end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11407 11408 11409 11410 11411 11412 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11407 def update!(**args) @conversation_context = args[:conversation_context] if args.key?(:conversation_context) @extra_info = args[:extra_info] if args.key?(:extra_info) @output = args[:output] if args.key?(:output) @summarization_section_list = args[:summarization_section_list] if args.key?(:summarization_section_list) end |