Open Agent Loops
API Reference

PermissionStore

@open-agent-loops/core


Defined in: permissions/permissions.types.ts:43

The configuration the gate consults.

Remarks

Reads the policy for a tool and persists durable ("always") decisions. Back it with RAM, a JSON file (CLI), or a DB — the gate only depends on this interface.

See

Methods

get()

get(toolName, args): Promise<PermissionPolicy>;

Defined in: permissions/permissions.types.ts:51

Current policy for a call.

Parameters

ParameterTypeDescription
toolNamestringThe name of the tool being called.
argsunknownThe call's arguments, passed so rules can be arg-aware.

Returns

Promise<PermissionPolicy>

The PermissionPolicy to apply to this call.


set()

set(toolName, policy): Promise<void>;

Defined in: permissions/permissions.types.ts:59

Persist a durable decision — the "always" half of an approval choice.

Parameters

ParameterTypeDescription
toolNamestringThe name of the tool the decision applies to.
policy| Allow | DenyThe durable policy to store (PermissionPolicy.Allow or PermissionPolicy.Deny).

Returns

Promise<void>

On this page