MemberJunction actions for AI agent management. This package provides the base action class and type definitions used by agent management actions, enabling programmatic creation, modification, and validation of AI agents through MemberJunction's action system.
Architecture
graph TD
A["BaseAgentManagementAction (Abstract Base)"] -->|extends| B["BaseAction (@memberjunction/actions)"]
A -->|provides| C["Permission Validation"]
A -->|provides| D["Parameter Extraction (String, UUID, Object)"]
A -->|provides| E["Entity Loading (Agents, Types)"]
A -->|provides| F["Prompt Creation + Association"]
A -->|provides| G["Transaction Management"]
style A fill:#7c5295,stroke:#563a6b,color:#fff
style B fill:#2d6a9f,stroke:#1a4971,color:#fff
style C fill:#2d8659,stroke:#1a5c3a,color:#fff
style D fill:#2d8659,stroke:#1a5c3a,color:#fff
style E fill:#2d8659,stroke:#1a5c3a,color:#fff
style F fill:#2d8659,stroke:#1a5c3a,color:#fff
style G fill:#2d8659,stroke:#1a5c3a,color:#fff
Features
Permission Validation: Ensures agent management actions are called with proper user context
Parameter Extraction: Type-safe extraction and validation of string, UUID, and object parameters
Entity Loading: Helper methods for loading AI Agent and AI Agent Type entities with error handling
Prompt Management: Create prompts and associate them with agents in a single operation
Transaction Support: Database transaction management for multi-record operations with rollback
Error Handling: Consistent error reporting via ActionResultSimple pattern
UUID Validation: Built-in UUID format validation for entity references