Skip to main content

agents_generative_settings

Creates, updates, deletes, gets or lists an agents_generative_settings resource.

Overview

Nameagents_generative_settings
TypeResource
Idgoogle.dialogflow.agents_generative_settings

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringFormat: projects//locations//agents//generativeSettings.
fallbackSettingsobjectSettings for Generative Fallback. (id: GoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettings)
generativeSafetySettingsobjectSettings for Generative Safety. (id: GoogleCloudDialogflowCxV3SafetySettings)
knowledgeConnectorSettingsobjectSettings for knowledge connector. (id: GoogleCloudDialogflowCxV3GenerativeSettingsKnowledgeConnectorSettings)
languageCodestringLanguage for this settings.
llmModelSettingsobjectLLM model settings. (id: GoogleCloudDialogflowCxV3LlmModelSettings)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_agents_get_generative_settingsselectprojectsId, locationsId, agentsIdlanguageCodeGets the generative settings for the agent.
projects_locations_agents_update_generative_settingsupdateprojectsId, locationsId, agentsIdupdateMaskUpdates the generative settings for the agent.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
agentsIdstring
locationsIdstring
projectsIdstring
languageCodestring
updateMaskstring (google-fieldmask)

SELECT examples

Gets the generative settings for the agent.

SELECT
name,
fallbackSettings,
generativeSafetySettings,
knowledgeConnectorSettings,
languageCode,
llmModelSettings
FROM google.dialogflow.agents_generative_settings
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND agentsId = '{{ agentsId }}' -- required
AND languageCode = '{{ languageCode }}';

UPDATE examples

Updates the generative settings for the agent.

UPDATE google.dialogflow.agents_generative_settings
SET
data__name = '{{ name }}',
data__fallbackSettings = '{{ fallbackSettings }}',
data__generativeSafetySettings = '{{ generativeSafetySettings }}',
data__knowledgeConnectorSettings = '{{ knowledgeConnectorSettings }}',
data__languageCode = '{{ languageCode }}',
data__llmModelSettings = '{{ llmModelSettings }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND agentsId = '{{ agentsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
fallbackSettings,
generativeSafetySettings,
knowledgeConnectorSettings,
languageCode,
llmModelSettings;