Dialogflow v3 API - Class Generator (2.18.0)

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.

Inheritance

object > Generator

Namespace

Google.Cloud.Dialogflow.Cx.V3

Assembly

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

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/<Project ID>/locations/<Location ID>/agents/<Agent ID>/generators/<Generator ID>.

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