@oona/vlo / agent / approvalSignal
Function: approvalSignal()
approvalSignal(
iteration,name?):SignalDef<ToolApproval>
Defined in: sdk/ts/sdk/src/agent/approval.ts:59
The signal the gated call of iteration waits on. Pass it to client.signal or client.signalLink; the iteration is the suffix of the wait's step id, approve#<i>.
Parameters
iteration
number
name?
string = DEFAULT_APPROVAL_SIGNAL
Returns
Example
ts
await client.signal(runId, approvalSignal(2), { approved: false, reason: "wrong audience" });