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.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Output only. Identifier. The resource name of the generator. Format: |
↳ description |
string
Optional. Human readable description of the generator. |
↳ free_form_context |
FreeFormContext
Input of free from generator to LLM. |
↳ summarization_context |
SummarizationContext
Input of prebuilt Summarization feature. |
↳ inference_parameter |
InferenceParameter
Optional. Inference parameters for this generator. |
↳ 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: |
↳ create_time |
Google\Protobuf\Timestamp
Output only. Creation time of this generator. |
↳ update_time |
Google\Protobuf\Timestamp
Output only. Update time of this generator. |
getName
Output only. Identifier. The resource name of the generator. Format:
projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Output only. Identifier. The resource name of the generator. Format:
projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDescription
Optional. Human readable description of the generator.
| Returns | |
|---|---|
| Type | Description |
string |
|
setDescription
Optional. Human readable description of the generator.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getFreeFormContext
Input of free from generator to LLM.
| Returns | |
|---|---|
| Type | Description |
FreeFormContext|null |
|
hasFreeFormContext
setFreeFormContext
Input of free from generator to LLM.
| Parameter | |
|---|---|
| Name | Description |
var |
FreeFormContext
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSummarizationContext
Input of prebuilt Summarization feature.
| Returns | |
|---|---|
| Type | Description |
SummarizationContext|null |
|
hasSummarizationContext
setSummarizationContext
Input of prebuilt Summarization feature.
| Parameter | |
|---|---|
| Name | Description |
var |
SummarizationContext
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getInferenceParameter
Optional. Inference parameters for this generator.
| Returns | |
|---|---|
| Type | Description |
InferenceParameter|null |
|
hasInferenceParameter
clearInferenceParameter
setInferenceParameter
Optional. Inference parameters for this generator.
| Parameter | |
|---|---|
| Name | Description |
var |
InferenceParameter
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTriggerEvent
Optional. The trigger event of the generator. It defines when the generator is triggered in a conversation.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type TriggerEvent. |
setTriggerEvent
Optional. The trigger event of the generator. It defines when the generator is triggered in a conversation.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type TriggerEvent. |
| Returns | |
|---|---|
| Type | Description |
$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.
| Returns | |
|---|---|
| Type | Description |
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.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCreateTime
Output only. Creation time of this generator.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasCreateTime
clearCreateTime
setCreateTime
Output only. Creation time of this generator.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUpdateTime
Output only. Update time of this generator.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. Update time of this generator.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getContext
| Returns | |
|---|---|
| Type | Description |
string |
|
getFoundationModel
| Returns | |
|---|---|
| Type | Description |
string |
|