AIDefaultContextFeatures
Narrows down which invocations of the AI features a default context entry applies to.
Each key targets one AI feature. When a key is omitted, the entry is not applied to that feature. A value of true applies the entry to every invocation of the feature, while a RegExp applies it only when one of the invocation IDs matches:
chat- the ID of the chat shortcut used to start a conversation. A matchingRegExpattaches the entry to that conversation, so it applies to the shortcut's message and to the conversation's later messages. A conversation not started by a matching shortcut (for example one started with a free-form message) receives the entry only when the value istrue.quickActions- the ID of the quick action or of its group,review- the ID of the review command,translate- the ID of the target language.
// Attach to all review commands, but only to the translate quick actions.
{
review: true,
quickActions: /^translate/
}
Properties
chat : boolean | RegExp | undefinedmodule:ai/aicore/model/aidefaultcontext~AIDefaultContextFeatures#chatWhether the entry is attached to the AI Chat messages. Provide a
RegExpto attach it when a conversation is started with an AI Chat shortcut whose ID matches: the entry is folded into that conversation, so it applies to the shortcut's message and to its later messages as well. A conversation not started by a matching shortcut receives the entry only when the value istrue.quickActions : boolean | RegExp | undefinedmodule:ai/aicore/model/aidefaultcontext~AIDefaultContextFeatures#quickActionsWhether the entry is attached to AI Quick Action requests. Provide a
RegExpto attach it only to actions whose ID, or the ID of their group, matches.review : boolean | RegExp | undefinedmodule:ai/aicore/model/aidefaultcontext~AIDefaultContextFeatures#reviewWhether the entry is attached to AI Review requests. Provide a
RegExpto attach it only to review commands whose ID matches.translate : boolean | RegExp | undefinedmodule:ai/aicore/model/aidefaultcontext~AIDefaultContextFeatures#translateWhether the entry is attached to AI Translate requests. Provide a
RegExpto attach it only to translations whose target language ID matches.