Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class Generator.
LLM generator.
Generated from protobuf message google.cloud.dialogflow.v2.Generator
Namespace
Google \ Cloud \ Dialogflow \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Output only. Identifier. The resource name of the generator. Format: projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>
↳ description
string
Optional. Human readable description of the generator.
↳ free_form_context
↳ summarization_context
↳ inference_parameter
↳ trigger_event
int
Optional. The trigger event of the generator. It defines when the generator is triggered in a conversation.
↳ published_model
string
Optional. The published Large Language Model name. * * To use the latest model version, specify the model name without version number. Example: text-bison
* * To use a stable model version, specify the version number as well. Example: text-bison@002
.
↳ create_time
↳ update_time
getName
Output only. Identifier. The resource name of the generator. Format: projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>
string
setName
Output only. Identifier. The resource name of the generator. Format: projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>
var
string
$this
getDescription
Optional. Human readable description of the generator.
string
setDescription
Optional. Human readable description of the generator.
var
string
$this
getFreeFormContext
Input of free from generator to LLM.
hasFreeFormContext
setFreeFormContext
Input of free from generator to LLM.
$this
getSummarizationContext
Input of prebuilt Summarization feature.
hasSummarizationContext
setSummarizationContext
Input of prebuilt Summarization feature.
$this
getInferenceParameter
Optional. Inference parameters for this generator.
hasInferenceParameter
clearInferenceParameter
setInferenceParameter
Optional. Inference parameters for this generator.
$this
getTriggerEvent
Optional. The trigger event of the generator. It defines when the generator is triggered in a conversation.
int
setTriggerEvent
Optional. The trigger event of the generator. It defines when the generator is triggered in a conversation.
var
int
$this
getPublishedModel
Optional. The published Large Language Model name.
- To use the latest model version, specify the model name without version
number. Example:
text-bison
- To use a stable model version, specify the version number as well.
Example:
text-bison@002
.
string
hasPublishedModel
setPublishedModel
Optional. The published Large Language Model name.
- To use the latest model version, specify the model name without version
number. Example:
text-bison
- To use a stable model version, specify the version number as well.
Example:
text-bison@002
.
var
string
$this
getCreateTime
Output only. Creation time of this generator.
hasCreateTime
clearCreateTime
setCreateTime
Output only. Creation time of this generator.
$this
getUpdateTime
Output only. Update time of this generator.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. Update time of this generator.
$this
getContext
string
getFoundationModel
string