Appearance
sdk.rule_engine
@type library Generic deterministic rule selection with explicit cooldown ownership. Rules are ordered by descending priority, ascending explicit order, and then insertion order. Selection never marks a cooldown; callers retain control of side effects by calling mark() only after the chosen action was accepted.
lua
local M = require("sdk.rule_engine")Constants
Lua 5.4 has no enums — these are integer (or string) fields on the module.
| Name | Value | Summary |
|---|---|---|
Engine | Engine | Rule engine class. |
new
function · new(options)
Create a generic boolean rule engine.