Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class PromptTemplate.
Prompt template.
Generated from protobuf message google.cloud.dialogflow.cx.v3.GenerativeSettings.FallbackSettings.PromptTemplate
Namespace
Google \ Cloud \ Dialogflow \ Cx \ V3 \ GenerativeSettings \ FallbackSettingsMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ display_name |
string
Prompt name. |
↳ prompt_text |
string
Prompt text that is sent to a LLM on no-match default, placeholders are filled downstream. For example: "Here is a conversation $conversation, a response is: " |
↳ frozen |
bool
If the flag is true, the prompt is frozen and cannot be modified by users. |
getDisplayName
Prompt name.
| Returns | |
|---|---|
| Type | Description |
string |
|
setDisplayName
Prompt name.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPromptText
Prompt text that is sent to a LLM on no-match default, placeholders are filled downstream. For example: "Here is a conversation $conversation, a response is: "
| Returns | |
|---|---|
| Type | Description |
string |
|
setPromptText
Prompt text that is sent to a LLM on no-match default, placeholders are filled downstream. For example: "Here is a conversation $conversation, a response is: "
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getFrozen
If the flag is true, the prompt is frozen and cannot be modified by users.
| Returns | |
|---|---|
| Type | Description |
bool |
|
setFrozen
If the flag is true, the prompt is frozen and cannot be modified by users.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|