Member Junction
    Preparing search index...

    Base panel component for creating AI Agents. This component contains all the logic and UI for agent creation. Use CreateAgentDialogComponent or CreateAgentSlideInComponent as wrappers.

    Features:

    • Creates both top-level agents and sub-agents
    • Agent type selection with loaded types from AIEngineBase
    • Basic info: Name, Description, Status, Execution Mode
    • Advanced model configuration (optional)
    • Linked prompts and actions management
    • Returns unsaved entities for parent to handle atomically

    Usage:

    <mj-create-agent-panel
    [Config]="{ Title: 'Create Agent' }"
    (Created)="onAgentCreated($event)"
    (Cancelled)="onCancel()">
    </mj-create-agent-panel>

    Hierarchy (View Summary)

    Implements

    • OnInit
    • OnDestroy
    Index

    Constructors

    Properties

    ActionSearchQuery: string = ''
    AgentTypes: MJAIAgentTypeEntity[] = []
    Cancelled: EventEmitter<void> = ...

    Emitted when user cancels the creation

    Created: EventEmitter<CreateAgentResult> = ...

    Emitted when agent is successfully created (returns unsaved entities)

    ErrorMessage: string | null = null
    FilteredActions: MJActionEntity[] = []
    FilteredPrompts: MJAIPromptEntityExtended[] = []
    Form: FormGroup
    IsLoading: boolean = true
    IsSubmitting: boolean = false
    LinkedActions: MJActionEntity[] = []
    LinkedPrompts: MJAIPromptEntityExtended[] = []
    PromptSearchQuery: string = ''
    Provider: IMetadataProvider | null

    If specified, this provider will be used for communication and for all metadata purposes. By default, if not provided, the Metadata and RunView classes are used for this and the default GraphQLDataProvider is used which is connected to the same back-end MJAPI instance as the Metadata and RunView classes. If you want to have this component connect to a different MJAPI back-end, create an instance of a ProviderBase sub-class like GraphQLDataProvider/etc, and configure it as appropriate to connect to the MJAPI back-end you want to use, and then pass it in here.

    ShowActionSelector: boolean = false
    ShowAdvancedConfig: boolean = false
    ShowPromptSelector: boolean = false
    "ɵdir": unknown
    "ɵfac": unknown

    Accessors

    • get ProviderToUse(): IMetadataProvider

      Returns either the default Metadata provider or the one specified in the Provider property, if it was specified

      Returns IMetadataProvider

    • get RunQueryToUse(): IRunQueryProvider

      Returns either the default RunQuery provider or the one specified in the Provider property, if it was specified

      Returns IRunQueryProvider

    • get RunReportToUse(): IRunReportProvider

      Returns either the default RunReport provider or the one specified in the Provider property, if it was specified

      Returns IRunReportProvider

    • get RunViewToUse(): IRunViewProvider

      Returns either the default RunView provider or the one specified in the Provider property, if it was specified

      Returns IRunViewProvider

    Methods

    • A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.

      Returns void