Member Junction
    Preparing search index...

    Header widget that lets a user pin a default AI agent on the active conversation. The pinned agent (saved to MJConversationEntity.DefaultAgentID) takes precedence over the embedder-supplied default in MessageInputComponent.routeMessage() — non-mention messages route to it instead of Sage.

    Eligible agents are top-level, Active, non-Sub-Agent rows from AIEngineBase.Instance.Agents. The widget renders as a compact button showing the current pin (or "Auto" when nothing is pinned). Clicking opens an inline list with a "Clear" option to remove the pin.

    The host controls visibility via <mj-conversation-chat-area>'s [showAgentPicker] input (default true). Surfaces that don't want this UX (e.g. agent-less embed) set it to false.

    Implements

    • OnInit
    Index

    Constructors

    Properties

    AgentChanged: EventEmitter<string | null> = ...

    Emitted after a successful save with the new (or null) agent ID.

    Conversation: MJConversationEntity | null = null

    The conversation whose DefaultAgentID this widget edits.

    CurrentUser: UserInfo | null = null

    Required for the Save() audit context.

    Disabled: boolean = false

    Disable the picker (e.g. read-only conversation).

    EligibleAgents: MJAIAgentEntityExtended[] = []
    IsOpen: boolean = false

    Accessors

    Methods