TriggerResult
TriggerResult = {
kind:"text";value:string; } | {kind:"chip";token:Omit<ChipToken,"id"> &object; } | {kind:"dismiss"; } | {args?:unknown;kind:"command";name:string; }
Defined in: widgets/controls/chat/types.ts:20
What happens when a completion is accepted for a trigger.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ kind: "text"; value: string; }
Splice plain text in place of the trigger query (e.g. a command name).
Type Literal
Section titled “Type Literal”{ kind: "chip"; token: Omit<ChipToken, "id"> & object; }
Replace the trigger query with an atomic chip (e.g. an @mention).
Type Literal
Section titled “Type Literal”{ kind: "dismiss"; }
Consume the query, insert nothing.
Type Literal
Section titled “Type Literal”{ args?: unknown; kind: "command"; name: string; }
Fire a command event immediately (e.g. a slash command).