public sealed class Generator : IMessage<Generator>, IEquatable<Generator>, IDeepCloneable<Generator>, IBufferMessage, IMessage
Reference documentation and code samples for the Dialogflow v3 API class Generator.
Generators contain prompt to be sent to the LLM model to generate text. The prompt can contain parameters which will be resolved before calling the model. It can optionally contain banned phrases to ensure the model responses are safe.
Implements
IMessageGenerator, IEquatableGenerator, IDeepCloneableGenerator, IBufferMessage, IMessageNamespace
Google.Cloud.Dialogflow.Cx.V3Assembly
Google.Cloud.Dialogflow.Cx.V3.dll
Constructors
Generator()
public Generator()
Generator(Generator)
public Generator(Generator other)
Parameter | |
---|---|
Name | Description |
other |
Generator |
Properties
DisplayName
public string DisplayName { get; set; }
Required. The human-readable name of the generator, unique within the agent. The prompt contains pre-defined parameters such as $conversation, $last-user-utterance, etc. populated by Dialogflow. It can also contain custom placeholders which will be resolved during fulfillment.
Property Value | |
---|---|
Type | Description |
string |
GeneratorName
public GeneratorName GeneratorName { get; set; }
GeneratorName-typed view over the Name resource name property.
Property Value | |
---|---|
Type | Description |
GeneratorName |
ModelParameter
public Generator.Types.ModelParameter ModelParameter { get; set; }
Parameters passed to the LLM to configure its behavior.
Property Value | |
---|---|
Type | Description |
GeneratorTypesModelParameter |
Name
public string Name { get; set; }
The unique identifier of the generator.
Must be set for the
[Generators.UpdateGenerator][google.cloud.dialogflow.cx.v3.Generators.UpdateGenerator]
method. [Generators.CreateGenerate][] populates the name automatically.
Format:
projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generators/<GeneratorID>
.
Property Value | |
---|---|
Type | Description |
string |
Placeholders
public RepeatedField<Generator.Types.Placeholder> Placeholders { get; }
Optional. List of custom placeholders in the prompt text.
Property Value | |
---|---|
Type | Description |
RepeatedFieldGeneratorTypesPlaceholder |
PromptText
public Phrase PromptText { get; set; }
Required. Prompt for the LLM model.
Property Value | |
---|---|
Type | Description |
Phrase |