Skip to main content

agents_generative_settings

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

Overview

Nameagents_generative_settings
TypeResource
Idgoogle.dialogflow.agents_generative_settings

Fields

NameDatatypeDescription
namestringFormat: projects//locations//agents//generativeSettings.
fallbackSettingsobjectSettings for Generative Fallback.
generativeSafetySettingsobjectSettings for Generative Safety.
knowledgeConnectorSettingsobjectSettings for knowledge connector. These parameters are used for LLM prompt like "You are . You are a helpful and verbose at , . Your task is to help humans on ".
languageCodestringLanguage for this settings.

Methods

NameAccessible byRequired ParamsDescription
projects_locations_agents_get_generative_settingsSELECTagentsId, locationsId, projectsIdGets the generative settings for the agent.
projects_locations_agents_update_generative_settingsUPDATEagentsId, locationsId, projectsIdUpdates the generative settings for the agent.

SELECT examples

Gets the generative settings for the agent.

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

UPDATE example

Updates a agents_generative_settings resource.

/*+ update */
UPDATE google.dialogflow.agents_generative_settings
SET
name = '{{ name }}',
fallbackSettings = '{{ fallbackSettings }}',
generativeSafetySettings = '{{ generativeSafetySettings }}',
knowledgeConnectorSettings = '{{ knowledgeConnectorSettings }}',
languageCode = '{{ languageCode }}'
WHERE
agentsId = '{{ agentsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';