Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::FewShotExample (v1.1.1)

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

#conversation_context=

def conversation_context=(value) -> ::Google::Cloud::Dialogflow::V2::ConversationContext
Parameter
Returns

#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

#output=

def output=(value) -> ::Google::Cloud::Dialogflow::V2::GeneratorSuggestion
Parameter
Returns

#summarization_section_list

def summarization_section_list() -> ::Google::Cloud::Dialogflow::V2::SummarizationSectionList
Returns

#summarization_section_list=

def summarization_section_list=(value) -> ::Google::Cloud::Dialogflow::V2::SummarizationSectionList
Parameter
Returns