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

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

setName

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getFallbackSettings

Settings for Generative Fallback.

Returns
TypeDescription
Google\Cloud\Dialogflow\Cx\V3\GenerativeSettings\FallbackSettings|null

hasFallbackSettings

clearFallbackSettings

setFallbackSettings

Settings for Generative Fallback.

Parameter
NameDescription
var Google\Cloud\Dialogflow\Cx\V3\GenerativeSettings\FallbackSettings
Returns
TypeDescription
$this

getGenerativeSafetySettings

Settings for Generative Safety.

Returns
TypeDescription
Google\Cloud\Dialogflow\Cx\V3\SafetySettings|null

hasGenerativeSafetySettings

clearGenerativeSafetySettings

setGenerativeSafetySettings

Settings for Generative Safety.

Parameter
NameDescription
var Google\Cloud\Dialogflow\Cx\V3\SafetySettings
Returns
TypeDescription
$this

getKnowledgeConnectorSettings

Settings for knowledge connector.

Returns
TypeDescription
Google\Cloud\Dialogflow\Cx\V3\GenerativeSettings\KnowledgeConnectorSettings|null

hasKnowledgeConnectorSettings

clearKnowledgeConnectorSettings

setKnowledgeConnectorSettings

Settings for knowledge connector.

Parameter
NameDescription
var Google\Cloud\Dialogflow\Cx\V3\GenerativeSettings\KnowledgeConnectorSettings
Returns
TypeDescription
$this

getLanguageCode

Language for this settings.

Returns
TypeDescription
string

setLanguageCode

Language for this settings.

Parameter
NameDescription
var string
Returns
TypeDescription
$this