Reference documentation and code samples for the Google Cloud Ces V1 Client class FallbackResponseConfig.
Configuration for handling fallback responses.
Generated from protobuf message google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig
Namespace
Google \ Cloud \ Ces \ V1 \ ErrorHandlingSettingsMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ custom_fallback_messages |
array|Google\Protobuf\Internal\MapField
Optional. The fallback messages in case of system errors (e.g. LLM errors), mapped by supported language code. |
↳ max_fallback_attempts |
int
Optional. The maximum number of fallback attempts to make before the agent emitting EndSession Signal. |
getCustomFallbackMessages
Optional. The fallback messages in case of system errors (e.g. LLM errors), mapped by supported language code.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\MapField |
|
setCustomFallbackMessages
Optional. The fallback messages in case of system errors (e.g. LLM errors), mapped by supported language code.
| Parameter | |
|---|---|
| Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMaxFallbackAttempts
Optional. The maximum number of fallback attempts to make before the agent emitting EndSession Signal.
| Returns | |
|---|---|
| Type | Description |
int |
|
setMaxFallbackAttempts
Optional. The maximum number of fallback attempts to make before the agent emitting EndSession Signal.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|