Skip to main content

Function: actionLimiterDdl()

actionLimiterDdl(windowsMs, tablePrefix?): string

Defined in: packages/agentos/src/safety/runtime/ActionLimiter.ts:137

The DDL for the windows a host uses, for a host that runs its own migrations (ensureSchema: false): each distinct window's two tables and their indexes, once.

Parameters​

windowsMs​

readonly number[]

The windowMs of every rule the host uses.

tablePrefix?​

string

The limiter's tablePrefix; default agentos_action.

Returns​

string

The statements.

Throws​

TypeError when a prefix and a window together make a name the meter refuses.