View Source GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2FewShotExample (google_api_dialogflow v0.87.0)

Providing examples in the generator (i.e. building a few-shot generator) helps convey the desired format of the LLM response. NEXT_ID: 10

Attributes

  • conversationContext (type: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2ConversationContext.t, default: nil) - Optional. Conversation transcripts.
  • extraInfo (type: map(), default: nil) - 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 (type: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2GeneratorSuggestion.t, default: nil) - Required. Example output of the model.
  • summarizationSectionList (type: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2SummarizationSectionList.t, default: nil) - Summarization sections.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2FewShotExample{
  conversationContext:
    GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2ConversationContext.t()
    | nil,
  extraInfo: map() | nil,
  output:
    GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2GeneratorSuggestion.t()
    | nil,
  summarizationSectionList:
    GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2SummarizationSectionList.t()
    | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.