AIQuickActionCustomChatDefinition
A custom AI quick action definition that interacts with AI Chat.
It will open the AI Chat interface for interactive conversations. If model is specified, it will be selected for the new chat conversation. Otherwise, the model currently selected in the AI Chat will be used:
{
id: 'summarize-in-bullet-points',
label: 'Summarize',
displayedPrompt: 'Summarize in 5 bullet points',
prompt: 'Summarize the selected text in 5 bullet points.',
type: 'chat'
}
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 AI model to use for the action. For
'action'type, if not specified, the default model will be used. For'chat'type, if not specified, the model currently selected in the AI Chat 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.