Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class FallbackSettings.
Settings for Generative Fallback.
Generated from protobuf message google.cloud.dialogflow.cx.v3.GenerativeSettings.FallbackSettings
Namespace
Google \ Cloud \ Dialogflow \ Cx \ V3 \ GenerativeSettingsMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ selected_prompt |
string
Display name of the selected prompt. |
↳ prompt_templates |
array<Google\Cloud\Dialogflow\Cx\V3\GenerativeSettings\FallbackSettings\PromptTemplate>
Stored prompts that can be selected, for example default templates like "conservative" or "chatty", or user defined ones. |
getSelectedPrompt
Display name of the selected prompt.
Returns | |
---|---|
Type | Description |
string |
setSelectedPrompt
Display name of the selected prompt.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getPromptTemplates
Stored prompts that can be selected, for example default templates like "conservative" or "chatty", or user defined ones.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setPromptTemplates
Stored prompts that can be selected, for example default templates like "conservative" or "chatty", or user defined ones.
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\Dialogflow\Cx\V3\GenerativeSettings\FallbackSettings\PromptTemplate>
|
Returns | |
---|---|
Type | Description |
$this |