Python Modules
Executable Python code that processes documents, runs inference, and handles events. Used with scheduled jobs, pipelines, and assistants.
JavaScript Modules
Inline JavaScript scripts for lightweight processing. Fast to deploy, ideal for transformations, routing, and API calls.
Skill Modules
File packs containing prompts, configurations, and knowledge that agents can discover and use.
Quick Comparison
| Python Module | JavaScript Module | Skill Module | |
|---|---|---|---|
| moduleType | model (default) | model (default) | skill |
| Contains | Python code | Inline JS script | Files (prompts, configs, knowledge) |
| Execution | Runs via Python module runtime | Runs via Go scripting runtime | Not executed — read by agent |
| Used by | Scheduled jobs, pipelines, assistants | Scheduled jobs, pipelines, assistants | Agents |
| Runtime ref | kodexa/base-module-runtime | kodexa/go-scripting-runtime | Not needed |
Prerequisites
Before building any module, ensure you have:- Python 3.11+ installed
- KDX CLI installed and configured — see Installation
- Kodexa Python SDK —
pip install kodexa - A Kodexa platform account with an organization
Deployment
Both module types are deployed the same way usingkdx apply:
