import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../../types"; /** * Creates an intent in the specified agent. */ export declare class AgentIntent extends pulumi.CustomResource { /** * Get an existing AgentIntent resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): AgentIntent; /** * Returns true if the given object is an instance of AgentIntent. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is AgentIntent; /** * Optional. Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters. */ readonly description: pulumi.Output; /** * Required. The human-readable name of the intent, unique within the agent. */ readonly displayName: pulumi.Output; /** * Indicates whether this is a fallback intent. Currently only default fallback intent is allowed in the agent, which is added upon agent creation. Adding training phrases to fallback intent is useful in the case of requests that are mistakenly matched, since training phrases assigned to fallback intents act as negative examples that triggers no-match event. */ readonly isFallback: pulumi.Output; /** * Optional. The key/value metadata to label an intent. Labels can contain lowercase letters, digits and the symbols '-' and '_'. International characters are allowed, including letters from unicase alphabets. Keys must start with a letter. Keys and values can be no longer than 63 characters and no more than 128 bytes. Prefix "sys." is reserved for Dialogflow defined labels. Currently allowed Dialogflow defined labels include: * sys.head * sys.contextual The above labels do not require value. "sys.head" means the intent is a head intent. "sys.contextual" means the intent is a contextual intent. */ readonly labels: pulumi.Output<{ [key: string]: string; }>; /** * The unique identifier of the intent. Required for the Intents.UpdateIntent method. Intents.CreateIntent populates the name automatically. Format: `projects//locations//agents//intents/`. */ readonly name: pulumi.Output; /** * The collection of parameters associated with the intent. */ readonly parameters: pulumi.Output; /** * The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the `Normal` priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests. */ readonly priority: pulumi.Output; /** * The collection of training phrases the agent is trained on to identify the intent. */ readonly trainingPhrases: pulumi.Output; /** * Create a AgentIntent resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: AgentIntentArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a AgentIntent resource. */ export interface AgentIntentArgs { readonly agentsId: pulumi.Input; /** * Optional. Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters. */ readonly description?: pulumi.Input; /** * Required. The human-readable name of the intent, unique within the agent. */ readonly displayName?: pulumi.Input; readonly intentsId: pulumi.Input; /** * Indicates whether this is a fallback intent. Currently only default fallback intent is allowed in the agent, which is added upon agent creation. Adding training phrases to fallback intent is useful in the case of requests that are mistakenly matched, since training phrases assigned to fallback intents act as negative examples that triggers no-match event. */ readonly isFallback?: pulumi.Input; /** * Optional. The key/value metadata to label an intent. Labels can contain lowercase letters, digits and the symbols '-' and '_'. International characters are allowed, including letters from unicase alphabets. Keys must start with a letter. Keys and values can be no longer than 63 characters and no more than 128 bytes. Prefix "sys." is reserved for Dialogflow defined labels. Currently allowed Dialogflow defined labels include: * sys.head * sys.contextual The above labels do not require value. "sys.head" means the intent is a head intent. "sys.contextual" means the intent is a contextual intent. */ readonly labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; readonly locationsId: pulumi.Input; /** * The unique identifier of the intent. Required for the Intents.UpdateIntent method. Intents.CreateIntent populates the name automatically. Format: `projects//locations//agents//intents/`. */ readonly name?: pulumi.Input; /** * The collection of parameters associated with the intent. */ readonly parameters?: pulumi.Input[]>; /** * The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the `Normal` priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests. */ readonly priority?: pulumi.Input; readonly projectsId: pulumi.Input; /** * The collection of training phrases the agent is trained on to identify the intent. */ readonly trainingPhrases?: pulumi.Input[]>; }