AbstractAbstract ReadonlyKeyStable identifier for this provider (e.g. 'agent-mentions'). Used as the
ClassFactory registration key and by ExcludedTriggerKeys filtering.
ReadonlyPriorityOrdering weight — higher runs first. When multiple providers share a TriggerChar, results are concatenated in priority order (then Key order).
Abstract ReadonlyTriggerThe single character that opens this provider's autocomplete (e.g. '@').
AbstractGetReturns the suggestions for the current query. Called on every keystroke after an active trigger; implementations should be fast (serve from warm caches) and must never throw — return [] on failure.
Optional warm-up hook, invoked once by the editor when it initializes with this provider active. Default is a no-op; override to pre-load caches so the first keystroke is fast. Must be safe to call repeatedly and concurrently.
Pluggable mention/command trigger for the composer's mention editor.
Each provider owns ONE trigger character (e.g. '@', '#', '/') and supplies the suggestions shown while the user types after it. The composer itself ships with ZERO providers — it is a plain text editor until providers are supplied, either:
[TriggerProviders]onmj-mention-editor/mj-message-input-boxwith provider instances (explicit list always wins), or@RegisterClass(ComposerTriggerProvider, '<Key>'); the editor resolves them through DiscoverComposerTriggerProviders when no explicit list is bound. Hosts opt individual triggers out with[ExcludedTriggerKeys].The AI-aware providers (agent mentions, entity/query record mentions, skill commands) live in
@memberjunction/ng-conversations— see itscomposer-pluginsfolder and themj-ai-composerwrapper component.