Class GeneratorSettings (1.42.0)

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

Generator settings used by the LLM to generate a text response.

Attributes

Name Description
generator str
Required. The generator to call. Format: projects/.
input_parameters MutableMapping[str, str]
Map from placeholder parameter][Generator.Parameter.id] in the Generator to corresponding session parameters. By default, Dialogflow uses the session parameter with the same name to fill in the generator template. e.g. If there is a placeholder parameter city in the Generator, Dialogflow default to fill in the $city with $session.params.city. However, you may choose to fill $city with $session.params.desination-city. - Map key: parameter ID][Genrator.Parameter.id] - Map value: session parameter name
output_parameter str
Required. Output parameter which should contain the generator response.

Classes

InputParametersEntry

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

The abstract base class for a message.

Parameters
Name Description
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.