Open Agent Loops
API Reference

ApprovalPrompter

@open-agent-loops/core


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

Asks the user to approve calls whose policy is "ask".

Remarks

Receives the whole pending subset at once (one round-trip), so a CLI can present them together.

See

permissionGate for the consumer that batches "ask" calls.

Methods

ask()

ask(batch): Promise<ApprovalChoice[]>;

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

Prompt the user for a decision on each pending call.

Parameters

ParameterTypeDescription
batchApprovalRequest[]The pending ApprovalRequests, all calls whose policy resolved to PermissionPolicy.Ask.

Returns

Promise<ApprovalChoice[]>

One ApprovalChoice per request, index-aligned with batch.

On this page