Google Cloud Dialogflow Cx V3 Client - Class GenerativeSettings (0.3.4)

Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class GenerativeSettings.

Settings for Generative AI.

Generated from protobuf message google.cloud.dialogflow.cx.v3.GenerativeSettings

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/generativeSettings.

↳ fallback_settings Google\Cloud\Dialogflow\Cx\V3\GenerativeSettings\FallbackSettings

Settings for Generative Fallback.

↳ generative_safety_settings Google\Cloud\Dialogflow\Cx\V3\SafetySettings

Settings for Generative Safety.

↳ knowledge_connector_settings Google\Cloud\Dialogflow\Cx\V3\GenerativeSettings\KnowledgeConnectorSettings

Settings for knowledge connector.

↳ language_code string

Language for this settings.

getName

Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/generativeSettings.

Returns
Type Description
string

setName

Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/generativeSettings.

Parameter
Name Description
var string
Returns
Type Description
$this

getFallbackSettings

Settings for Generative Fallback.

Returns
Type Description
Google\Cloud\Dialogflow\Cx\V3\GenerativeSettings\FallbackSettings|null

hasFallbackSettings

clearFallbackSettings

setFallbackSettings

Settings for Generative Fallback.

Parameter
Name Description
var Google\Cloud\Dialogflow\Cx\V3\GenerativeSettings\FallbackSettings
Returns
Type Description
$this

getGenerativeSafetySettings

Settings for Generative Safety.

Returns
Type Description
Google\Cloud\Dialogflow\Cx\V3\SafetySettings|null

hasGenerativeSafetySettings

clearGenerativeSafetySettings

setGenerativeSafetySettings

Settings for Generative Safety.

Parameter
Name Description
var Google\Cloud\Dialogflow\Cx\V3\SafetySettings
Returns
Type Description
$this

getKnowledgeConnectorSettings

Settings for knowledge connector.

Returns
Type Description
Google\Cloud\Dialogflow\Cx\V3\GenerativeSettings\KnowledgeConnectorSettings|null

hasKnowledgeConnectorSettings

clearKnowledgeConnectorSettings

setKnowledgeConnectorSettings

Settings for knowledge connector.

Parameter
Name Description
var Google\Cloud\Dialogflow\Cx\V3\GenerativeSettings\KnowledgeConnectorSettings
Returns
Type Description
$this

getLanguageCode

Language for this settings.

Returns
Type Description
string

setLanguageCode

Language for this settings.

Parameter
Name Description
var string
Returns
Type Description
$this