Agent Editor Statements
Statements for managing AI agent editor documents. Requires Mendix 11.9+ and the AgentEditorCommons module.
The Mendix Agent Editor introduces four document types that must be set up in dependency order:
- Model — an LLM configuration referencing a Mendix Cloud GenAI Portal resource key
- Knowledge Base — a vector knowledge base for retrieval-augmented generation
- Consumed MCP Service — an external tool server (Model Context Protocol)
- Agent — an AI agent that references a model and optionally uses knowledge bases and MCP services
Statements
| Statement | Description |
|---|---|
| CREATE MODEL | Define an LLM model configuration |
| CREATE KNOWLEDGE BASE | Define a vector knowledge base |
| CREATE CONSUMED MCP SERVICE | Register an external MCP tool server |
| CREATE AGENT | Define an AI agent with prompts and optional tools |
Related Statements
| Statement | Syntax |
|---|---|
| List models | LIST MODELS [IN module] |
| List knowledge bases | LIST KNOWLEDGE BASES [IN module] |
| List consumed MCP services | LIST CONSUMED MCP SERVICES [IN module] |
| List agents | LIST AGENTS [IN module] |
| Describe | DESCRIBE { MODEL | KNOWLEDGE BASE | CONSUMED MCP SERVICE | AGENT } module.Name |
Drop Statements
DROP MODEL module.Name;
DROP KNOWLEDGE BASE module.Name;
DROP CONSUMED MCP SERVICE module.Name;
DROP AGENT module.Name;
Prerequisites
- Mendix 11.9+
AgentEditorCommonsmodule installed- Encryption module configured (32-character key)
ASU_AgentEditorregistered as after-startup microflow
Version Gate
All agent editor statements are version-gated to Mendix 11.9+. Running them against an older project produces:
feature not available: agent editor requires Mendix >= 11.9