AIQuickActionCustomChatDefinition
interface
A custom AI quick action definition that interacts with AI Chat.
It will open the AI Chat interface for interactive conversations:
{
id: 'summarize-in-bullet-points',
label: 'Summarize',
displayedPrompt: 'Summarize in 5 bullet points',
prompt: 'Summarize the selected text in 5 bullet points.',
type: 'chat'
}
Copy code
Properties
displayedPrompt : stringmodule:ai/aiquickactions/aiquickactions~AIQuickActionCustomChatDefinition#displayedPromptThe prompt shown in the AI Chat UI when the action is executed. If not specified, the
promptproperty value will be used.id : stringreadonlyinheritedmodule:ai/aiquickactions/aiquickactions~AIQuickActionCustomChatDefinition#idThe unique identifier of the action.
label : stringreadonlyinheritedmodule:ai/aiquickactions/aiquickactions~AIQuickActionCustomChatDefinition#labelThe human-readable label of the action.
model : string | undefinedreadonlyinheritedmodule:ai/aiquickactions/aiquickactions~AIQuickActionCustomChatDefinition#modelThe model to use for the action. If not specified, the default model will be used.
prompt : stringreadonlyinheritedmodule:ai/aiquickactions/aiquickactions~AIQuickActionCustomChatDefinition#promptThe prompt to be sent to the AI model when the action is executed.
type : 'chat'module:ai/aiquickactions/aiquickactions~AIQuickActionCustomChatDefinition#typeThe type of the action.