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. NEXT_ID: 10
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.
10528 10529 10530 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10528 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
10509 10510 10511 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10509 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
10516 10517 10518 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10516 def extra_info @extra_info end |
#output ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GeneratorSuggestion
Suggestion generated using a Generator.
Corresponds to the JSON property output
10521 10522 10523 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10521 def output @output end |
#summarization_section_list ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationSectionList
List of summarization sections.
Corresponds to the JSON property summarizationSectionList
10526 10527 10528 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10526 def summarization_section_list @summarization_section_list end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10533 10534 10535 10536 10537 10538 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10533 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 |