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
Name
Description
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.