Decorator that marks a function for securing a database for querying it with AI (executeAiQuery).
The decorator takes an optional integration ID.
If no integration ID is provided, the built_in_db integration is used.
The function should return a boolean or a Promise of a boolean indicating
whether the action is allowed.
In addition, the function takes a context object as a parameter.
The context object contains information about the action.
Decorator that marks a function for securing a database for querying it with AI (
executeAiQuery
).The decorator takes an optional integration ID. If no integration ID is provided, the
built_in_db
integration is used.The function should return a boolean or a
Promise
of a boolean indicating whether the action is allowed. In addition, the function takes a context object as a parameter. The context object contains information about the action.