Class Generator (1.29.0)

Generator(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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.

Attributes

NameDescription
name str
The unique identifier of the generator. Must be set for the Generators.UpdateGenerator method. [Generators.CreateGenerate][] populates the name automatically. Format: projects/.
display_name str
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.
prompt_text google.cloud.dialogflowcx_v3beta1.types.Phrase
Required. Prompt for the LLM model.
placeholders MutableSequence[google.cloud.dialogflowcx_v3beta1.types.Generator.Placeholder]
Optional. List of custom placeholders in the prompt text.

Classes

Placeholder

Placeholder(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents a custom placeholder in the prompt text.