include

include

> Functions

Includes the AI located at the path ai in the current AI.

Be careful: the include function must only be called in the main block, and its parameter must be a string written directly in the code.

For example, with a file tree like this one, and from inside the file myAI/main:

Parameters
Synonyms

import, require

TypeScript

include does not exist: the AI is split into modules with import / export. Only exported names (export function …) are visible from other files. See JavaScript and TypeScript.

Python

include does not exist: the AI is split into modules with import, as in regular Python. A module is looked up in the AI's folder, then at the root. See Python.