Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class GeneratorSettings.
Generator settings used by the LLM to generate a text response.
Generated from protobuf message google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings
Namespace
Google \ Cloud \ Dialogflow \ Cx \ V3 \ FulfillmentMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ generator |
string
Required. The generator to call. Format: |
↳ input_parameters |
array|Google\Protobuf\Internal\MapField
Map from placeholder parameter 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 |
↳ output_parameter |
string
Required. Output parameter which should contain the generator response. |
getGenerator
Required. The generator to call.
Format:
projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generators/<GeneratorID>
.
Returns | |
---|---|
Type | Description |
string |
setGenerator
Required. The generator to call.
Format:
projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generators/<GeneratorID>
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getInputParameters
Map from placeholder parameter 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
- Map value: session parameter name
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\MapField |
setInputParameters
Map from placeholder parameter 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
- Map value: session parameter name
Parameter | |
---|---|
Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
Returns | |
---|---|
Type | Description |
$this |
getOutputParameter
Required. Output parameter which should contain the generator response.
Returns | |
---|---|
Type | Description |
string |
setOutputParameter
Required. Output parameter which should contain the generator response.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |