Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::FewShotExample.
Providing examples in the generator (i.e. building a few-shot generator) helps convey the desired format of the LLM response. NEXT_ID: 10
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#conversation_context
def conversation_context() -> ::Google::Cloud::Dialogflow::V2::ConversationContext
Returns
- (::Google::Cloud::Dialogflow::V2::ConversationContext) — Optional. Conversation transcripts.
#conversation_context=
def conversation_context=(value) -> ::Google::Cloud::Dialogflow::V2::ConversationContext
Parameter
- value (::Google::Cloud::Dialogflow::V2::ConversationContext) — Optional. Conversation transcripts.
Returns
- (::Google::Cloud::Dialogflow::V2::ConversationContext) — Optional. Conversation transcripts.
#extra_info
def extra_info() -> ::Google::Protobuf::Map{::String => ::String}
Returns
- (::Google::Protobuf::Map{::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">
#extra_info=
def extra_info=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
- value (::Google::Protobuf::Map{::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">
Returns
- (::Google::Protobuf::Map{::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">
#output
def output() -> ::Google::Cloud::Dialogflow::V2::GeneratorSuggestion
Returns
- (::Google::Cloud::Dialogflow::V2::GeneratorSuggestion) — Required. Example output of the model.
#output=
def output=(value) -> ::Google::Cloud::Dialogflow::V2::GeneratorSuggestion
Parameter
- value (::Google::Cloud::Dialogflow::V2::GeneratorSuggestion) — Required. Example output of the model.
Returns
- (::Google::Cloud::Dialogflow::V2::GeneratorSuggestion) — Required. Example output of the model.
#summarization_section_list
def summarization_section_list() -> ::Google::Cloud::Dialogflow::V2::SummarizationSectionList
Returns
- (::Google::Cloud::Dialogflow::V2::SummarizationSectionList) — Summarization sections.
#summarization_section_list=
def summarization_section_list=(value) -> ::Google::Cloud::Dialogflow::V2::SummarizationSectionList
Parameter
- value (::Google::Cloud::Dialogflow::V2::SummarizationSectionList) — Summarization sections.
Returns
- (::Google::Cloud::Dialogflow::V2::SummarizationSectionList) — Summarization sections.