Skip to content

Graphorin API reference v0.5.0


Graphorin API reference / @graphorin/tools / / ApprovalGate

Interface: ApprovalGate

Defined in: packages/tools/src/executor/executor.ts:248

Approval gate the executor consults before executing a gated tool.

Methods

request()

ts
request(call, approval): Promise<ApprovalDecision>;

Defined in: packages/tools/src/executor/executor.ts:253

Request approval for the tool call. Returns { granted: true } to proceed, { granted: false, reason? } to deny.

Parameters

ParameterType
callToolCall
approvalToolApproval

Returns

Promise&lt;ApprovalDecision&gt;