Write custom AI controllers and map scripts in JavaScript. Runtime code executes JavaScript; the editor declarations help authoring without introducing a TypeScript build step.
Examples and editor declarations accompany the API. Scripts execute embedded trusted code, operate on immutable observations, and return validated intents. Read the guide’s determinism and persistence requirements before adding a controller.