Google Cloud Dialogflow v2 API - Class FewShotExample (4.25.0)

public sealed class FewShotExample : IMessage<FewShotExample>, IEquatable<FewShotExample>, IDeepCloneable<FewShotExample>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Dialogflow v2 API class FewShotExample.

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

Inheritance

object > FewShotExample

Namespace

Google.Cloud.Dialogflow.V2

Assembly

Google.Cloud.Dialogflow.V2.dll

Constructors

FewShotExample()

public FewShotExample()

FewShotExample(FewShotExample)

public FewShotExample(FewShotExample other)
Parameter
Name Description
other FewShotExample

Properties

ConversationContext

public ConversationContext ConversationContext { get; set; }

Optional. Conversation transcripts.

Property Value
Type Description
ConversationContext

ExtraInfo

public MapField<string, string> ExtraInfo { get; }

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

Property Value
Type Description
MapFieldstringstring

InstructionListCase

public FewShotExample.InstructionListOneofCase InstructionListCase { get; }
Property Value
Type Description
FewShotExampleInstructionListOneofCase

Output

public GeneratorSuggestion Output { get; set; }

Required. Example output of the model.

Property Value
Type Description
GeneratorSuggestion

SummarizationSectionList

public SummarizationSectionList SummarizationSectionList { get; set; }

Summarization sections.

Property Value
Type Description
SummarizationSectionList