Google Cloud Dialogflow V2 Client - Class FewShotExample (2.0.1)

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.

Generated from protobuf message google.cloud.dialogflow.v2.FewShotExample

Namespace

Google \ Cloud \ Dialogflow \ V2

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ conversation_context
ConversationContext

Optional. Conversation transcripts.

↳ 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
SummarizationSectionList

Summarization sections.

↳ output
GeneratorSuggestion

Required. Example output of the model.

getConversationContext

Optional. Conversation transcripts.

Returns
Type
Description

hasConversationContext

clearConversationContext

setConversationContext

Optional. Conversation transcripts.

Parameter
Name
Description
Returns
Type
Description
$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">

Returns
Type
Description

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">

Parameter
Name
Description
Returns
Type
Description
$this

getSummarizationSectionList

Summarization sections.

Returns
Type
Description

hasSummarizationSectionList

setSummarizationSectionList

Summarization sections.

Parameter
Name
Description
Returns
Type
Description
$this

getOutput

Required. Example output of the model.

Returns
Type
Description

hasOutput

clearOutput

setOutput

Required. Example output of the model.

Parameter
Name
Description
Returns
Type
Description
$this

getInstructionList

Returns
Type
Description
string
Create a Mobile Website
View Site in Mobile | Classic
Share by: