Google Cloud Dialogflow V2 Client - Class Generator (2.3.0)

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

Methods

__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: projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>

↳ description
string

Optional. Human readable description of the generator.

↳ free_form_context
FreeFormContext

Input of free from generator to LLM.

↳ agent_coaching_context
AgentCoachingContext

Input of prebuilt Agent Coaching feature.

↳ 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: text-bison * * To use a stable model version, specify the version number as well. Example: text-bison@002 .

↳ create_time
Google\Protobuf\Timestamp

Output only. Creation time of this generator.

↳ update_time
Google\Protobuf\Timestamp

Output only. Update time of this generator.

↳ tools
array

Optional. Resource names of the tools that the generator can choose from. Format: projects/<Project ID>/locations/<Location ID>/tools/<tool ID> .

↳ suggestion_deduping_config
SuggestionDedupingConfig

Optional. Configuration for suggestion deduping. This is only applicable to AI Coach feature.

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

hasFreeFormContext

setFreeFormContext

Input of free from generator to LLM.

Parameter
Name
Description
Returns
Type
Description
$this

getAgentCoachingContext

Input of prebuilt Agent Coaching feature.

Returns
Type
Description

hasAgentCoachingContext

setAgentCoachingContext

Input of prebuilt Agent Coaching feature.

Parameter
Name
Description
Returns
Type
Description
$this

getSummarizationContext

Input of prebuilt Summarization feature.

Returns
Type
Description

hasSummarizationContext

setSummarizationContext

Input of prebuilt Summarization feature.

Parameter
Name
Description
Returns
Type
Description
$this

getInferenceParameter

Optional. Inference parameters for this generator.

Returns
Type
Description

hasInferenceParameter

clearInferenceParameter

setInferenceParameter

Optional. Inference parameters for this generator.

Parameter
Name
Description
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

hasCreateTime

clearCreateTime

setCreateTime

Output only. Creation time of this generator.

Parameter
Name
Description
Returns
Type
Description
$this

getUpdateTime

Output only. Update time of this generator.

Returns
Type
Description

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. Update time of this generator.

Parameter
Name
Description
Returns
Type
Description
$this

getTools

Optional. Resource names of the tools that the generator can choose from.

Format: projects/<Project ID>/locations/<Location ID>/tools/<tool ID> .

Returns
Type
Description

setTools

Optional. Resource names of the tools that the generator can choose from.

Format: projects/<Project ID>/locations/<Location ID>/tools/<tool ID> .

Parameter
Name
Description
var
string[]
Returns
Type
Description
$this

getSuggestionDedupingConfig

Optional. Configuration for suggestion deduping. This is only applicable to AI Coach feature.

Returns
Type
Description

hasSuggestionDedupingConfig

clearSuggestionDedupingConfig

setSuggestionDedupingConfig

Optional. Configuration for suggestion deduping. This is only applicable to AI Coach feature.

Parameter
Name
Description
Returns
Type
Description
$this

getContext

Returns
Type
Description
string

getFoundationModel

Returns
Type
Description
string
Design a Mobile Site
View Site in Mobile | Classic
Share by: