AIPACK

AIPACK Lua Application model

Here is the Lua application model and concepts.

The full Lua APIs (aip. module) can be found in lua-apis

Convention and Flow

aipack injects the following modules/variables into the various script stages:

Note that Lua types in the aipack documentation are expressed in a simplified TypeScript notation as it is clear and concise.

For example:

Important Lua considerations and best practices

aip.flow

The aip.flow Lua module provides special functions that return structured tables to control the agent's execution flow. These should be used as the return value of the corresponding script stage (# Before All or # Data).

See aip.flow documentation in lua-apis for detailed API signatures.

Before All Stage Flow Control

Data Stage Flow Control