Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class 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
Generated from protobuf message google.cloud.dialogflow.v2.FewShotExample
Namespace
Google \ Cloud \ Dialogflow \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ conversation_context
↳ extra_info
array| Google\Protobuf\Internal\MapField
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">
↳ summarization_section_list
↳ output
getConversationContext
Optional. Conversation transcripts.
hasConversationContext
clearConversationContext
setConversationContext
Optional. Conversation transcripts.
$this
getExtraInfo
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">
setExtraInfo
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">
$this
getSummarizationSectionList
Summarization sections.
hasSummarizationSectionList
setSummarizationSectionList
Summarization sections.
$this
getOutput
Required. Example output of the model.
hasOutput
clearOutput
setOutput
Required. Example output of the model.
$this
getInstructionList
string