gcp.diagflow.CxGenerativeSettings
Explore with Pulumi AI
Settings for Generative AI.
To get more information about GenerativeSettings, see:
- API documentation
- How-to Guides
Example Usage
Dialogflowcx Generative Settings Full
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const agent = new gcp.diagflow.CxAgent("agent", {
displayName: "dialogflowcx-agent",
location: "global",
defaultLanguageCode: "en",
timeZone: "America/New_York",
description: "Example description.",
});
const fullGenerativeSettings = new gcp.diagflow.CxGenerativeSettings("full_generative_settings", {
parent: agent.id,
fallbackSettings: {
selectedPrompt: "example prompt",
promptTemplates: [{
displayName: "example prompt",
promptText: "example prompt text",
frozen: false,
}],
},
generativeSafetySettings: {
defaultBannedPhraseMatchStrategy: "PARTIAL_MATCH",
bannedPhrases: [{
text: "example text",
languageCode: "en",
}],
},
knowledgeConnectorSettings: {
business: "example business",
agent: "example agent",
agentIdentity: "virtual agent",
businessDescription: "a family company selling freshly roasted coffee beans",
agentScope: "Example company website",
disableDataStoreFallback: false,
},
languageCode: "en",
llmModelSettings: {
model: "gemini-2.0-flash-001",
promptText: "example prompt text",
},
});
import pulumi
import pulumi_gcp as gcp
agent = gcp.diagflow.CxAgent("agent",
display_name="dialogflowcx-agent",
location="global",
default_language_code="en",
time_zone="America/New_York",
description="Example description.")
full_generative_settings = gcp.diagflow.CxGenerativeSettings("full_generative_settings",
parent=agent.id,
fallback_settings={
"selected_prompt": "example prompt",
"prompt_templates": [{
"display_name": "example prompt",
"prompt_text": "example prompt text",
"frozen": False,
}],
},
generative_safety_settings={
"default_banned_phrase_match_strategy": "PARTIAL_MATCH",
"banned_phrases": [{
"text": "example text",
"language_code": "en",
}],
},
knowledge_connector_settings={
"business": "example business",
"agent": "example agent",
"agent_identity": "virtual agent",
"business_description": "a family company selling freshly roasted coffee beans",
"agent_scope": "Example company website",
"disable_data_store_fallback": False,
},
language_code="en",
llm_model_settings={
"model": "gemini-2.0-flash-001",
"prompt_text": "example prompt text",
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/diagflow"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
agent, err := diagflow.NewCxAgent(ctx, "agent", &diagflow.CxAgentArgs{
DisplayName: pulumi.String("dialogflowcx-agent"),
Location: pulumi.String("global"),
DefaultLanguageCode: pulumi.String("en"),
TimeZone: pulumi.String("America/New_York"),
Description: pulumi.String("Example description."),
})
if err != nil {
return err
}
_, err = diagflow.NewCxGenerativeSettings(ctx, "full_generative_settings", &diagflow.CxGenerativeSettingsArgs{
Parent: agent.ID(),
FallbackSettings: &diagflow.CxGenerativeSettingsFallbackSettingsArgs{
SelectedPrompt: pulumi.String("example prompt"),
PromptTemplates: diagflow.CxGenerativeSettingsFallbackSettingsPromptTemplateArray{
&diagflow.CxGenerativeSettingsFallbackSettingsPromptTemplateArgs{
DisplayName: pulumi.String("example prompt"),
PromptText: pulumi.String("example prompt text"),
Frozen: pulumi.Bool(false),
},
},
},
GenerativeSafetySettings: &diagflow.CxGenerativeSettingsGenerativeSafetySettingsArgs{
DefaultBannedPhraseMatchStrategy: pulumi.String("PARTIAL_MATCH"),
BannedPhrases: diagflow.CxGenerativeSettingsGenerativeSafetySettingsBannedPhraseArray{
&diagflow.CxGenerativeSettingsGenerativeSafetySettingsBannedPhraseArgs{
Text: pulumi.String("example text"),
LanguageCode: pulumi.String("en"),
},
},
},
KnowledgeConnectorSettings: &diagflow.CxGenerativeSettingsKnowledgeConnectorSettingsArgs{
Business: pulumi.String("example business"),
Agent: pulumi.String("example agent"),
AgentIdentity: pulumi.String("virtual agent"),
BusinessDescription: pulumi.String("a family company selling freshly roasted coffee beans"),
AgentScope: pulumi.String("Example company website"),
DisableDataStoreFallback: pulumi.Bool(false),
},
LanguageCode: pulumi.String("en"),
LlmModelSettings: &diagflow.CxGenerativeSettingsLlmModelSettingsArgs{
Model: pulumi.String("gemini-2.0-flash-001"),
PromptText: pulumi.String("example prompt text"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var agent = new Gcp.Diagflow.CxAgent("agent", new()
{
DisplayName = "dialogflowcx-agent",
Location = "global",
DefaultLanguageCode = "en",
TimeZone = "America/New_York",
Description = "Example description.",
});
var fullGenerativeSettings = new Gcp.Diagflow.CxGenerativeSettings("full_generative_settings", new()
{
Parent = agent.Id,
FallbackSettings = new Gcp.Diagflow.Inputs.CxGenerativeSettingsFallbackSettingsArgs
{
SelectedPrompt = "example prompt",
PromptTemplates = new[]
{
new Gcp.Diagflow.Inputs.CxGenerativeSettingsFallbackSettingsPromptTemplateArgs
{
DisplayName = "example prompt",
PromptText = "example prompt text",
Frozen = false,
},
},
},
GenerativeSafetySettings = new Gcp.Diagflow.Inputs.CxGenerativeSettingsGenerativeSafetySettingsArgs
{
DefaultBannedPhraseMatchStrategy = "PARTIAL_MATCH",
BannedPhrases = new[]
{
new Gcp.Diagflow.Inputs.CxGenerativeSettingsGenerativeSafetySettingsBannedPhraseArgs
{
Text = "example text",
LanguageCode = "en",
},
},
},
KnowledgeConnectorSettings = new Gcp.Diagflow.Inputs.CxGenerativeSettingsKnowledgeConnectorSettingsArgs
{
Business = "example business",
Agent = "example agent",
AgentIdentity = "virtual agent",
BusinessDescription = "a family company selling freshly roasted coffee beans",
AgentScope = "Example company website",
DisableDataStoreFallback = false,
},
LanguageCode = "en",
LlmModelSettings = new Gcp.Diagflow.Inputs.CxGenerativeSettingsLlmModelSettingsArgs
{
Model = "gemini-2.0-flash-001",
PromptText = "example prompt text",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.diagflow.CxAgent;
import com.pulumi.gcp.diagflow.CxAgentArgs;
import com.pulumi.gcp.diagflow.CxGenerativeSettings;
import com.pulumi.gcp.diagflow.CxGenerativeSettingsArgs;
import com.pulumi.gcp.diagflow.inputs.CxGenerativeSettingsFallbackSettingsArgs;
import com.pulumi.gcp.diagflow.inputs.CxGenerativeSettingsGenerativeSafetySettingsArgs;
import com.pulumi.gcp.diagflow.inputs.CxGenerativeSettingsKnowledgeConnectorSettingsArgs;
import com.pulumi.gcp.diagflow.inputs.CxGenerativeSettingsLlmModelSettingsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var agent = new CxAgent("agent", CxAgentArgs.builder()
.displayName("dialogflowcx-agent")
.location("global")
.defaultLanguageCode("en")
.timeZone("America/New_York")
.description("Example description.")
.build());
var fullGenerativeSettings = new CxGenerativeSettings("fullGenerativeSettings", CxGenerativeSettingsArgs.builder()
.parent(agent.id())
.fallbackSettings(CxGenerativeSettingsFallbackSettingsArgs.builder()
.selectedPrompt("example prompt")
.promptTemplates(CxGenerativeSettingsFallbackSettingsPromptTemplateArgs.builder()
.displayName("example prompt")
.promptText("example prompt text")
.frozen(false)
.build())
.build())
.generativeSafetySettings(CxGenerativeSettingsGenerativeSafetySettingsArgs.builder()
.defaultBannedPhraseMatchStrategy("PARTIAL_MATCH")
.bannedPhrases(CxGenerativeSettingsGenerativeSafetySettingsBannedPhraseArgs.builder()
.text("example text")
.languageCode("en")
.build())
.build())
.knowledgeConnectorSettings(CxGenerativeSettingsKnowledgeConnectorSettingsArgs.builder()
.business("example business")
.agent("example agent")
.agentIdentity("virtual agent")
.businessDescription("a family company selling freshly roasted coffee beans")
.agentScope("Example company website")
.disableDataStoreFallback(false)
.build())
.languageCode("en")
.llmModelSettings(CxGenerativeSettingsLlmModelSettingsArgs.builder()
.model("gemini-2.0-flash-001")
.promptText("example prompt text")
.build())
.build());
}
}
resources:
agent:
type: gcp:diagflow:CxAgent
properties:
displayName: dialogflowcx-agent
location: global
defaultLanguageCode: en
timeZone: America/New_York
description: Example description.
fullGenerativeSettings:
type: gcp:diagflow:CxGenerativeSettings
name: full_generative_settings
properties:
parent: ${agent.id}
fallbackSettings:
selectedPrompt: example prompt
promptTemplates:
- displayName: example prompt
promptText: example prompt text
frozen: false
generativeSafetySettings:
defaultBannedPhraseMatchStrategy: PARTIAL_MATCH
bannedPhrases:
- text: example text
languageCode: en
knowledgeConnectorSettings:
business: example business
agent: example agent
agentIdentity: virtual agent
businessDescription: a family company selling freshly roasted coffee beans
agentScope: Example company website
disableDataStoreFallback: false
languageCode: en
llmModelSettings:
model: gemini-2.0-flash-001
promptText: example prompt text
Create CxGenerativeSettings Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CxGenerativeSettings(name: string, args: CxGenerativeSettingsArgs, opts?: CustomResourceOptions);
@overload
def CxGenerativeSettings(resource_name: str,
args: CxGenerativeSettingsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CxGenerativeSettings(resource_name: str,
opts: Optional[ResourceOptions] = None,
language_code: Optional[str] = None,
fallback_settings: Optional[CxGenerativeSettingsFallbackSettingsArgs] = None,
generative_safety_settings: Optional[CxGenerativeSettingsGenerativeSafetySettingsArgs] = None,
knowledge_connector_settings: Optional[CxGenerativeSettingsKnowledgeConnectorSettingsArgs] = None,
llm_model_settings: Optional[CxGenerativeSettingsLlmModelSettingsArgs] = None,
parent: Optional[str] = None)
func NewCxGenerativeSettings(ctx *Context, name string, args CxGenerativeSettingsArgs, opts ...ResourceOption) (*CxGenerativeSettings, error)
public CxGenerativeSettings(string name, CxGenerativeSettingsArgs args, CustomResourceOptions? opts = null)
public CxGenerativeSettings(String name, CxGenerativeSettingsArgs args)
public CxGenerativeSettings(String name, CxGenerativeSettingsArgs args, CustomResourceOptions options)
type: gcp:diagflow:CxGenerativeSettings
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CxGenerativeSettingsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CxGenerativeSettingsArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CxGenerativeSettingsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CxGenerativeSettingsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CxGenerativeSettingsArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var cxGenerativeSettingsResource = new Gcp.Diagflow.CxGenerativeSettings("cxGenerativeSettingsResource", new()
{
LanguageCode = "string",
FallbackSettings = new Gcp.Diagflow.Inputs.CxGenerativeSettingsFallbackSettingsArgs
{
PromptTemplates = new[]
{
new Gcp.Diagflow.Inputs.CxGenerativeSettingsFallbackSettingsPromptTemplateArgs
{
DisplayName = "string",
Frozen = false,
PromptText = "string",
},
},
SelectedPrompt = "string",
},
GenerativeSafetySettings = new Gcp.Diagflow.Inputs.CxGenerativeSettingsGenerativeSafetySettingsArgs
{
BannedPhrases = new[]
{
new Gcp.Diagflow.Inputs.CxGenerativeSettingsGenerativeSafetySettingsBannedPhraseArgs
{
LanguageCode = "string",
Text = "string",
},
},
DefaultBannedPhraseMatchStrategy = "string",
},
KnowledgeConnectorSettings = new Gcp.Diagflow.Inputs.CxGenerativeSettingsKnowledgeConnectorSettingsArgs
{
Agent = "string",
AgentIdentity = "string",
AgentScope = "string",
Business = "string",
BusinessDescription = "string",
DisableDataStoreFallback = false,
},
LlmModelSettings = new Gcp.Diagflow.Inputs.CxGenerativeSettingsLlmModelSettingsArgs
{
Model = "string",
PromptText = "string",
},
Parent = "string",
});
example, err := diagflow.NewCxGenerativeSettings(ctx, "cxGenerativeSettingsResource", &diagflow.CxGenerativeSettingsArgs{
LanguageCode: pulumi.String("string"),
FallbackSettings: &diagflow.CxGenerativeSettingsFallbackSettingsArgs{
PromptTemplates: diagflow.CxGenerativeSettingsFallbackSettingsPromptTemplateArray{
&diagflow.CxGenerativeSettingsFallbackSettingsPromptTemplateArgs{
DisplayName: pulumi.String("string"),
Frozen: pulumi.Bool(false),
PromptText: pulumi.String("string"),
},
},
SelectedPrompt: pulumi.String("string"),
},
GenerativeSafetySettings: &diagflow.CxGenerativeSettingsGenerativeSafetySettingsArgs{
BannedPhrases: diagflow.CxGenerativeSettingsGenerativeSafetySettingsBannedPhraseArray{
&diagflow.CxGenerativeSettingsGenerativeSafetySettingsBannedPhraseArgs{
LanguageCode: pulumi.String("string"),
Text: pulumi.String("string"),
},
},
DefaultBannedPhraseMatchStrategy: pulumi.String("string"),
},
KnowledgeConnectorSettings: &diagflow.CxGenerativeSettingsKnowledgeConnectorSettingsArgs{
Agent: pulumi.String("string"),
AgentIdentity: pulumi.String("string"),
AgentScope: pulumi.String("string"),
Business: pulumi.String("string"),
BusinessDescription: pulumi.String("string"),
DisableDataStoreFallback: pulumi.Bool(false),
},
LlmModelSettings: &diagflow.CxGenerativeSettingsLlmModelSettingsArgs{
Model: pulumi.String("string"),
PromptText: pulumi.String("string"),
},
Parent: pulumi.String("string"),
})
var cxGenerativeSettingsResource = new CxGenerativeSettings("cxGenerativeSettingsResource", CxGenerativeSettingsArgs.builder()
.languageCode("string")
.fallbackSettings(CxGenerativeSettingsFallbackSettingsArgs.builder()
.promptTemplates(CxGenerativeSettingsFallbackSettingsPromptTemplateArgs.builder()
.displayName("string")
.frozen(false)
.promptText("string")
.build())
.selectedPrompt("string")
.build())
.generativeSafetySettings(CxGenerativeSettingsGenerativeSafetySettingsArgs.builder()
.bannedPhrases(CxGenerativeSettingsGenerativeSafetySettingsBannedPhraseArgs.builder()
.languageCode("string")
.text("string")
.build())
.defaultBannedPhraseMatchStrategy("string")
.build())
.knowledgeConnectorSettings(CxGenerativeSettingsKnowledgeConnectorSettingsArgs.builder()
.agent("string")
.agentIdentity("string")
.agentScope("string")
.business("string")
.businessDescription("string")
.disableDataStoreFallback(false)
.build())
.llmModelSettings(CxGenerativeSettingsLlmModelSettingsArgs.builder()
.model("string")
.promptText("string")
.build())
.parent("string")
.build());
cx_generative_settings_resource = gcp.diagflow.CxGenerativeSettings("cxGenerativeSettingsResource",
language_code="string",
fallback_settings={
"prompt_templates": [{
"display_name": "string",
"frozen": False,
"prompt_text": "string",
}],
"selected_prompt": "string",
},
generative_safety_settings={
"banned_phrases": [{
"language_code": "string",
"text": "string",
}],
"default_banned_phrase_match_strategy": "string",
},
knowledge_connector_settings={
"agent": "string",
"agent_identity": "string",
"agent_scope": "string",
"business": "string",
"business_description": "string",
"disable_data_store_fallback": False,
},
llm_model_settings={
"model": "string",
"prompt_text": "string",
},
parent="string")
const cxGenerativeSettingsResource = new gcp.diagflow.CxGenerativeSettings("cxGenerativeSettingsResource", {
languageCode: "string",
fallbackSettings: {
promptTemplates: [{
displayName: "string",
frozen: false,
promptText: "string",
}],
selectedPrompt: "string",
},
generativeSafetySettings: {
bannedPhrases: [{
languageCode: "string",
text: "string",
}],
defaultBannedPhraseMatchStrategy: "string",
},
knowledgeConnectorSettings: {
agent: "string",
agentIdentity: "string",
agentScope: "string",
business: "string",
businessDescription: "string",
disableDataStoreFallback: false,
},
llmModelSettings: {
model: "string",
promptText: "string",
},
parent: "string",
});
type: gcp:diagflow:CxGenerativeSettings
properties:
fallbackSettings:
promptTemplates:
- displayName: string
frozen: false
promptText: string
selectedPrompt: string
generativeSafetySettings:
bannedPhrases:
- languageCode: string
text: string
defaultBannedPhraseMatchStrategy: string
knowledgeConnectorSettings:
agent: string
agentIdentity: string
agentScope: string
business: string
businessDescription: string
disableDataStoreFallback: false
languageCode: string
llmModelSettings:
model: string
promptText: string
parent: string
CxGenerativeSettings Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CxGenerativeSettings resource accepts the following input properties:
- Language
Code string - Language for this settings.
- Fallback
Settings CxGenerative Settings Fallback Settings - Settings for Generative Fallback. Structure is documented below.
- Generative
Safety CxSettings Generative Settings Generative Safety Settings - Settings for Generative Safety. w Structure is documented below.
- Knowledge
Connector CxSettings Generative Settings Knowledge Connector Settings - Settings for knowledge connector. Structure is documented below.
- Llm
Model CxSettings Generative Settings Llm Model Settings - LLM model settings. Structure is documented below.
- Parent string
- The agent to create a flow for. Format: projects//locations//agents/.
- Language
Code string - Language for this settings.
- Fallback
Settings CxGenerative Settings Fallback Settings Args - Settings for Generative Fallback. Structure is documented below.
- Generative
Safety CxSettings Generative Settings Generative Safety Settings Args - Settings for Generative Safety. w Structure is documented below.
- Knowledge
Connector CxSettings Generative Settings Knowledge Connector Settings Args - Settings for knowledge connector. Structure is documented below.
- Llm
Model CxSettings Generative Settings Llm Model Settings Args - LLM model settings. Structure is documented below.
- Parent string
- The agent to create a flow for. Format: projects//locations//agents/.
- language
Code String - Language for this settings.
- fallback
Settings CxGenerative Settings Fallback Settings - Settings for Generative Fallback. Structure is documented below.
- generative
Safety CxSettings Generative Settings Generative Safety Settings - Settings for Generative Safety. w Structure is documented below.
- knowledge
Connector CxSettings Generative Settings Knowledge Connector Settings - Settings for knowledge connector. Structure is documented below.
- llm
Model CxSettings Generative Settings Llm Model Settings - LLM model settings. Structure is documented below.
- parent String
- The agent to create a flow for. Format: projects//locations//agents/.
- language
Code string - Language for this settings.
- fallback
Settings CxGenerative Settings Fallback Settings - Settings for Generative Fallback. Structure is documented below.
- generative
Safety CxSettings Generative Settings Generative Safety Settings - Settings for Generative Safety. w Structure is documented below.
- knowledge
Connector CxSettings Generative Settings Knowledge Connector Settings - Settings for knowledge connector. Structure is documented below.
- llm
Model CxSettings Generative Settings Llm Model Settings - LLM model settings. Structure is documented below.
- parent string
- The agent to create a flow for. Format: projects//locations//agents/.
- language_
code str - Language for this settings.
- fallback_
settings CxGenerative Settings Fallback Settings Args - Settings for Generative Fallback. Structure is documented below.
- generative_
safety_ Cxsettings Generative Settings Generative Safety Settings Args - Settings for Generative Safety. w Structure is documented below.
- knowledge_
connector_ Cxsettings Generative Settings Knowledge Connector Settings Args - Settings for knowledge connector. Structure is documented below.
- llm_
model_ Cxsettings Generative Settings Llm Model Settings Args - LLM model settings. Structure is documented below.
- parent str
- The agent to create a flow for. Format: projects//locations//agents/.
- language
Code String - Language for this settings.
- fallback
Settings Property Map - Settings for Generative Fallback. Structure is documented below.
- generative
Safety Property MapSettings - Settings for Generative Safety. w Structure is documented below.
- knowledge
Connector Property MapSettings - Settings for knowledge connector. Structure is documented below.
- llm
Model Property MapSettings - LLM model settings. Structure is documented below.
- parent String
- The agent to create a flow for. Format: projects//locations//agents/.
Outputs
All input properties are implicitly available as output properties. Additionally, the CxGenerativeSettings resource produces the following output properties:
Look up Existing CxGenerativeSettings Resource
Get an existing CxGenerativeSettings resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CxGenerativeSettingsState, opts?: CustomResourceOptions): CxGenerativeSettings
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
fallback_settings: Optional[CxGenerativeSettingsFallbackSettingsArgs] = None,
generative_safety_settings: Optional[CxGenerativeSettingsGenerativeSafetySettingsArgs] = None,
knowledge_connector_settings: Optional[CxGenerativeSettingsKnowledgeConnectorSettingsArgs] = None,
language_code: Optional[str] = None,
llm_model_settings: Optional[CxGenerativeSettingsLlmModelSettingsArgs] = None,
name: Optional[str] = None,
parent: Optional[str] = None) -> CxGenerativeSettings
func GetCxGenerativeSettings(ctx *Context, name string, id IDInput, state *CxGenerativeSettingsState, opts ...ResourceOption) (*CxGenerativeSettings, error)
public static CxGenerativeSettings Get(string name, Input<string> id, CxGenerativeSettingsState? state, CustomResourceOptions? opts = null)
public static CxGenerativeSettings get(String name, Output<String> id, CxGenerativeSettingsState state, CustomResourceOptions options)
resources: _: type: gcp:diagflow:CxGenerativeSettings get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Fallback
Settings CxGenerative Settings Fallback Settings - Settings for Generative Fallback. Structure is documented below.
- Generative
Safety CxSettings Generative Settings Generative Safety Settings - Settings for Generative Safety. w Structure is documented below.
- Knowledge
Connector CxSettings Generative Settings Knowledge Connector Settings - Settings for knowledge connector. Structure is documented below.
- Language
Code string - Language for this settings.
- Llm
Model CxSettings Generative Settings Llm Model Settings - LLM model settings. Structure is documented below.
- Name string
- The unique identifier of the generativeSettings. Format: projects//locations//agents//generativeSettings.
- Parent string
- The agent to create a flow for. Format: projects//locations//agents/.
- Fallback
Settings CxGenerative Settings Fallback Settings Args - Settings for Generative Fallback. Structure is documented below.
- Generative
Safety CxSettings Generative Settings Generative Safety Settings Args - Settings for Generative Safety. w Structure is documented below.
- Knowledge
Connector CxSettings Generative Settings Knowledge Connector Settings Args - Settings for knowledge connector. Structure is documented below.
- Language
Code string - Language for this settings.
- Llm
Model CxSettings Generative Settings Llm Model Settings Args - LLM model settings. Structure is documented below.
- Name string
- The unique identifier of the generativeSettings. Format: projects//locations//agents//generativeSettings.
- Parent string
- The agent to create a flow for. Format: projects//locations//agents/.
- fallback
Settings CxGenerative Settings Fallback Settings - Settings for Generative Fallback. Structure is documented below.
- generative
Safety CxSettings Generative Settings Generative Safety Settings - Settings for Generative Safety. w Structure is documented below.
- knowledge
Connector CxSettings Generative Settings Knowledge Connector Settings - Settings for knowledge connector. Structure is documented below.
- language
Code String - Language for this settings.
- llm
Model CxSettings Generative Settings Llm Model Settings - LLM model settings. Structure is documented below.
- name String
- The unique identifier of the generativeSettings. Format: projects//locations//agents//generativeSettings.
- parent String
- The agent to create a flow for. Format: projects//locations//agents/.
- fallback
Settings CxGenerative Settings Fallback Settings - Settings for Generative Fallback. Structure is documented below.
- generative
Safety CxSettings Generative Settings Generative Safety Settings - Settings for Generative Safety. w Structure is documented below.
- knowledge
Connector CxSettings Generative Settings Knowledge Connector Settings - Settings for knowledge connector. Structure is documented below.
- language
Code string - Language for this settings.
- llm
Model CxSettings Generative Settings Llm Model Settings - LLM model settings. Structure is documented below.
- name string
- The unique identifier of the generativeSettings. Format: projects//locations//agents//generativeSettings.
- parent string
- The agent to create a flow for. Format: projects//locations//agents/.
- fallback_
settings CxGenerative Settings Fallback Settings Args - Settings for Generative Fallback. Structure is documented below.
- generative_
safety_ Cxsettings Generative Settings Generative Safety Settings Args - Settings for Generative Safety. w Structure is documented below.
- knowledge_
connector_ Cxsettings Generative Settings Knowledge Connector Settings Args - Settings for knowledge connector. Structure is documented below.
- language_
code str - Language for this settings.
- llm_
model_ Cxsettings Generative Settings Llm Model Settings Args - LLM model settings. Structure is documented below.
- name str
- The unique identifier of the generativeSettings. Format: projects//locations//agents//generativeSettings.
- parent str
- The agent to create a flow for. Format: projects//locations//agents/.
- fallback
Settings Property Map - Settings for Generative Fallback. Structure is documented below.
- generative
Safety Property MapSettings - Settings for Generative Safety. w Structure is documented below.
- knowledge
Connector Property MapSettings - Settings for knowledge connector. Structure is documented below.
- language
Code String - Language for this settings.
- llm
Model Property MapSettings - LLM model settings. Structure is documented below.
- name String
- The unique identifier of the generativeSettings. Format: projects//locations//agents//generativeSettings.
- parent String
- The agent to create a flow for. Format: projects//locations//agents/.
Supporting Types
CxGenerativeSettingsFallbackSettings, CxGenerativeSettingsFallbackSettingsArgs
- Prompt
Templates List<CxGenerative Settings Fallback Settings Prompt Template> - Stored prompts that can be selected, for example default templates like "conservative" or "chatty", or user defined ones. Structure is documented below.
- Selected
Prompt string - Display name of the selected prompt.
- Prompt
Templates []CxGenerative Settings Fallback Settings Prompt Template - Stored prompts that can be selected, for example default templates like "conservative" or "chatty", or user defined ones. Structure is documented below.
- Selected
Prompt string - Display name of the selected prompt.
- prompt
Templates List<CxGenerative Settings Fallback Settings Prompt Template> - Stored prompts that can be selected, for example default templates like "conservative" or "chatty", or user defined ones. Structure is documented below.
- selected
Prompt String - Display name of the selected prompt.
- prompt
Templates CxGenerative Settings Fallback Settings Prompt Template[] - Stored prompts that can be selected, for example default templates like "conservative" or "chatty", or user defined ones. Structure is documented below.
- selected
Prompt string - Display name of the selected prompt.
- prompt_
templates Sequence[CxGenerative Settings Fallback Settings Prompt Template] - Stored prompts that can be selected, for example default templates like "conservative" or "chatty", or user defined ones. Structure is documented below.
- selected_
prompt str - Display name of the selected prompt.
- prompt
Templates List<Property Map> - Stored prompts that can be selected, for example default templates like "conservative" or "chatty", or user defined ones. Structure is documented below.
- selected
Prompt String - Display name of the selected prompt.
CxGenerativeSettingsFallbackSettingsPromptTemplate, CxGenerativeSettingsFallbackSettingsPromptTemplateArgs
- Display
Name string - Prompt name.
- Frozen bool
- If the flag is true, the prompt is frozen and cannot be modified by users.
- Prompt
Text string - Prompt text that is sent to a LLM on no-match default, placeholders are filled downstream. For example: "Here is a conversation $conversation, a response is: "
- Display
Name string - Prompt name.
- Frozen bool
- If the flag is true, the prompt is frozen and cannot be modified by users.
- Prompt
Text string - Prompt text that is sent to a LLM on no-match default, placeholders are filled downstream. For example: "Here is a conversation $conversation, a response is: "
- display
Name String - Prompt name.
- frozen Boolean
- If the flag is true, the prompt is frozen and cannot be modified by users.
- prompt
Text String - Prompt text that is sent to a LLM on no-match default, placeholders are filled downstream. For example: "Here is a conversation $conversation, a response is: "
- display
Name string - Prompt name.
- frozen boolean
- If the flag is true, the prompt is frozen and cannot be modified by users.
- prompt
Text string - Prompt text that is sent to a LLM on no-match default, placeholders are filled downstream. For example: "Here is a conversation $conversation, a response is: "
- display_
name str - Prompt name.
- frozen bool
- If the flag is true, the prompt is frozen and cannot be modified by users.
- prompt_
text str - Prompt text that is sent to a LLM on no-match default, placeholders are filled downstream. For example: "Here is a conversation $conversation, a response is: "
- display
Name String - Prompt name.
- frozen Boolean
- If the flag is true, the prompt is frozen and cannot be modified by users.
- prompt
Text String - Prompt text that is sent to a LLM on no-match default, placeholders are filled downstream. For example: "Here is a conversation $conversation, a response is: "
CxGenerativeSettingsGenerativeSafetySettings, CxGenerativeSettingsGenerativeSafetySettingsArgs
- Banned
Phrases List<CxGenerative Settings Generative Safety Settings Banned Phrase> - Banned phrases for generated text. Structure is documented below.
- Default
Banned stringPhrase Match Strategy - Optional. Default phrase match strategy for banned phrases. See PhraseMatchStrategy for valid values.
- Banned
Phrases []CxGenerative Settings Generative Safety Settings Banned Phrase - Banned phrases for generated text. Structure is documented below.
- Default
Banned stringPhrase Match Strategy - Optional. Default phrase match strategy for banned phrases. See PhraseMatchStrategy for valid values.
- banned
Phrases List<CxGenerative Settings Generative Safety Settings Banned Phrase> - Banned phrases for generated text. Structure is documented below.
- default
Banned StringPhrase Match Strategy - Optional. Default phrase match strategy for banned phrases. See PhraseMatchStrategy for valid values.
- banned
Phrases CxGenerative Settings Generative Safety Settings Banned Phrase[] - Banned phrases for generated text. Structure is documented below.
- default
Banned stringPhrase Match Strategy - Optional. Default phrase match strategy for banned phrases. See PhraseMatchStrategy for valid values.
- banned_
phrases Sequence[CxGenerative Settings Generative Safety Settings Banned Phrase] - Banned phrases for generated text. Structure is documented below.
- default_
banned_ strphrase_ match_ strategy - Optional. Default phrase match strategy for banned phrases. See PhraseMatchStrategy for valid values.
- banned
Phrases List<Property Map> - Banned phrases for generated text. Structure is documented below.
- default
Banned StringPhrase Match Strategy - Optional. Default phrase match strategy for banned phrases. See PhraseMatchStrategy for valid values.
CxGenerativeSettingsGenerativeSafetySettingsBannedPhrase, CxGenerativeSettingsGenerativeSafetySettingsBannedPhraseArgs
- Language
Code string - Language code of the phrase.
- Text string
- Text input which can be used for prompt or banned phrases.
- Language
Code string - Language code of the phrase.
- Text string
- Text input which can be used for prompt or banned phrases.
- language
Code String - Language code of the phrase.
- text String
- Text input which can be used for prompt or banned phrases.
- language
Code string - Language code of the phrase.
- text string
- Text input which can be used for prompt or banned phrases.
- language_
code str - Language code of the phrase.
- text str
- Text input which can be used for prompt or banned phrases.
- language
Code String - Language code of the phrase.
- text String
- Text input which can be used for prompt or banned phrases.
CxGenerativeSettingsKnowledgeConnectorSettings, CxGenerativeSettingsKnowledgeConnectorSettingsArgs
- Agent string
- Name of the virtual agent. Used for LLM prompt. Can be left empty.
- Agent
Identity string - Identity of the agent, e.g. "virtual agent", "AI assistant".
- Agent
Scope string - Agent scope, e.g. "Example company website", "internal Example company website for employees", "manual of car owner".
- Business string
- Name of the company, organization or other entity that the agent represents. Used for knowledge connector LLM prompt and for knowledge search.
- Business
Description string - Company description, used for LLM prompt, e.g. "a family company selling freshly roasted coffee beans".``
- Disable
Data boolStore Fallback - Whether to disable fallback to Data Store search results (in case the LLM couldn't pick a proper answer). Per default the feature is enabled.
- Agent string
- Name of the virtual agent. Used for LLM prompt. Can be left empty.
- Agent
Identity string - Identity of the agent, e.g. "virtual agent", "AI assistant".
- Agent
Scope string - Agent scope, e.g. "Example company website", "internal Example company website for employees", "manual of car owner".
- Business string
- Name of the company, organization or other entity that the agent represents. Used for knowledge connector LLM prompt and for knowledge search.
- Business
Description string - Company description, used for LLM prompt, e.g. "a family company selling freshly roasted coffee beans".``
- Disable
Data boolStore Fallback - Whether to disable fallback to Data Store search results (in case the LLM couldn't pick a proper answer). Per default the feature is enabled.
- agent String
- Name of the virtual agent. Used for LLM prompt. Can be left empty.
- agent
Identity String - Identity of the agent, e.g. "virtual agent", "AI assistant".
- agent
Scope String - Agent scope, e.g. "Example company website", "internal Example company website for employees", "manual of car owner".
- business String
- Name of the company, organization or other entity that the agent represents. Used for knowledge connector LLM prompt and for knowledge search.
- business
Description String - Company description, used for LLM prompt, e.g. "a family company selling freshly roasted coffee beans".``
- disable
Data BooleanStore Fallback - Whether to disable fallback to Data Store search results (in case the LLM couldn't pick a proper answer). Per default the feature is enabled.
- agent string
- Name of the virtual agent. Used for LLM prompt. Can be left empty.
- agent
Identity string - Identity of the agent, e.g. "virtual agent", "AI assistant".
- agent
Scope string - Agent scope, e.g. "Example company website", "internal Example company website for employees", "manual of car owner".
- business string
- Name of the company, organization or other entity that the agent represents. Used for knowledge connector LLM prompt and for knowledge search.
- business
Description string - Company description, used for LLM prompt, e.g. "a family company selling freshly roasted coffee beans".``
- disable
Data booleanStore Fallback - Whether to disable fallback to Data Store search results (in case the LLM couldn't pick a proper answer). Per default the feature is enabled.
- agent str
- Name of the virtual agent. Used for LLM prompt. Can be left empty.
- agent_
identity str - Identity of the agent, e.g. "virtual agent", "AI assistant".
- agent_
scope str - Agent scope, e.g. "Example company website", "internal Example company website for employees", "manual of car owner".
- business str
- Name of the company, organization or other entity that the agent represents. Used for knowledge connector LLM prompt and for knowledge search.
- business_
description str - Company description, used for LLM prompt, e.g. "a family company selling freshly roasted coffee beans".``
- disable_
data_ boolstore_ fallback - Whether to disable fallback to Data Store search results (in case the LLM couldn't pick a proper answer). Per default the feature is enabled.
- agent String
- Name of the virtual agent. Used for LLM prompt. Can be left empty.
- agent
Identity String - Identity of the agent, e.g. "virtual agent", "AI assistant".
- agent
Scope String - Agent scope, e.g. "Example company website", "internal Example company website for employees", "manual of car owner".
- business String
- Name of the company, organization or other entity that the agent represents. Used for knowledge connector LLM prompt and for knowledge search.
- business
Description String - Company description, used for LLM prompt, e.g. "a family company selling freshly roasted coffee beans".``
- disable
Data BooleanStore Fallback - Whether to disable fallback to Data Store search results (in case the LLM couldn't pick a proper answer). Per default the feature is enabled.
CxGenerativeSettingsLlmModelSettings, CxGenerativeSettingsLlmModelSettingsArgs
- Model string
- The selected LLM model.
- Prompt
Text string - The custom prompt to use.
- Model string
- The selected LLM model.
- Prompt
Text string - The custom prompt to use.
- model String
- The selected LLM model.
- prompt
Text String - The custom prompt to use.
- model string
- The selected LLM model.
- prompt
Text string - The custom prompt to use.
- model str
- The selected LLM model.
- prompt_
text str - The custom prompt to use.
- model String
- The selected LLM model.
- prompt
Text String - The custom prompt to use.
Import
GenerativeSettings can be imported using any of these accepted formats:
{{parent}}/generativeSettings
{{parent}}
When using the pulumi import
command, GenerativeSettings can be imported using one of the formats above. For example:
$ pulumi import gcp:diagflow/cxGenerativeSettings:CxGenerativeSettings default {{parent}}/generativeSettings
$ pulumi import gcp:diagflow/cxGenerativeSettings:CxGenerativeSettings default {{parent}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.