Sign up (with export icon)

AIDefaultContextFeatures

Api-interface iconinterface

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 matching RegExp attaches 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 is true.
  • 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/
}
Copy code

Properties

  • Chevron-right icon

    chat : boolean | RegExp | undefined

    Whether the entry is attached to the AI Chat messages. Provide a RegExp to 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 is true.

  • Chevron-right icon

    quickActions : boolean | RegExp | undefined

    Whether the entry is attached to AI Quick Action requests. Provide a RegExp to attach it only to actions whose ID, or the ID of their group, matches.

  • Chevron-right icon

    review : boolean | RegExp | undefined

    Whether the entry is attached to AI Review requests. Provide a RegExp to attach it only to review commands whose ID matches.

  • Chevron-right icon

    translate : boolean | RegExp | undefined

    Whether the entry is attached to AI Translate requests. Provide a RegExp to attach it only to translations whose target language ID matches.