Google Cloud Dialogflow Cx V3 Client - Class PromptTemplate (0.1.1)

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 \ FallbackSettings

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
string

setDisplayName

Prompt name.

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getFrozen

If the flag is true, the prompt is frozen and cannot be modified by users.

Returns
TypeDescription
bool

setFrozen

If the flag is true, the prompt is frozen and cannot be modified by users.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this