Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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:

  1. Model — an LLM configuration referencing a Mendix Cloud GenAI Portal resource key
  2. Knowledge Base — a vector knowledge base for retrieval-augmented generation
  3. Consumed MCP Service — an external tool server (Model Context Protocol)
  4. Agent — an AI agent that references a model and optionally uses knowledge bases and MCP services

Statements

StatementDescription
CREATE MODELDefine an LLM model configuration
CREATE KNOWLEDGE BASEDefine a vector knowledge base
CREATE CONSUMED MCP SERVICERegister an external MCP tool server
CREATE AGENTDefine an AI agent with prompts and optional tools
StatementSyntax
List modelsLIST MODELS [IN module]
List knowledge basesLIST KNOWLEDGE BASES [IN module]
List consumed MCP servicesLIST CONSUMED MCP SERVICES [IN module]
List agentsLIST AGENTS [IN module]
DescribeDESCRIBE { 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+
  • AgentEditorCommons module installed
  • Encryption module configured (32-character key)
  • ASU_AgentEditor registered 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