Class Generator (1.32.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.


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.
Required. Prompt for the LLM model.
placeholders MutableSequence[]
Optional. List of custom placeholders in the prompt text.
The LLM model settings.



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

Represents a custom placeholder in the prompt text.