Reference documentation and code samples for the Google Cloud Ces V1 Client class TextResponseConfig.
Configuration for the text response returned with the widget.
Generated from protobuf message google.cloud.ces.v1.WidgetTool.TextResponseConfig
Namespace
Google \ Cloud \ Ces \ V1 \ WidgetToolMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ type |
int
Optional. The strategy for providing the text response. |
↳ static_text |
string
Optional. The static text response to return when type is STATIC. |
↳ text_response_instruction |
string
Optional. Instruction for the LLM on how to generate the text response. Used as the description for the text response parameter if type is LLM_GENERATED. |
getType
Optional. The strategy for providing the text response.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type Type. |
setType
Optional. The strategy for providing the text response.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type Type. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getStaticText
Optional. The static text response to return when type is STATIC.
| Returns | |
|---|---|
| Type | Description |
string |
|
setStaticText
Optional. The static text response to return when type is STATIC.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTextResponseInstruction
Optional. Instruction for the LLM on how to generate the text response.
Used as the description for the text response parameter if type is LLM_GENERATED.
| Returns | |
|---|---|
| Type | Description |
string |
|
setTextResponseInstruction
Optional. Instruction for the LLM on how to generate the text response.
Used as the description for the text response parameter if type is LLM_GENERATED.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|