agents_generative_settings
Creates, updates, deletes, gets or lists an agents_generative_settings
resource.
Overview
Name | agents_generative_settings |
Type | Resource |
Id | google.dialogflow.agents_generative_settings |
Fields
The following fields are returned by SELECT
queries:
- projects_locations_agents_get_generative_settings
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Format: projects//locations//agents//generativeSettings . |
fallbackSettings | object | Settings for Generative Fallback. (id: GoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettings) |
generativeSafetySettings | object | Settings for Generative Safety. (id: GoogleCloudDialogflowCxV3SafetySettings) |
knowledgeConnectorSettings | object | Settings for knowledge connector. (id: GoogleCloudDialogflowCxV3GenerativeSettingsKnowledgeConnectorSettings) |
languageCode | string | Language for this settings. |
llmModelSettings | object | LLM model settings. (id: GoogleCloudDialogflowCxV3LlmModelSettings) |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
projects_locations_agents_get_generative_settings | select | projectsId , locationsId , agentsId | languageCode | Gets the generative settings for the agent. |
projects_locations_agents_update_generative_settings | update | projectsId , locationsId , agentsId | updateMask | Updates 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.
Name | Datatype | Description |
---|---|---|
agentsId | string | |
locationsId | string | |
projectsId | string | |
languageCode | string | |
updateMask | string (google-fieldmask) |
SELECT
examples
- projects_locations_agents_get_generative_settings
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
- projects_locations_agents_update_generative_settings
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;