Skip to content

@oona/vlo / agent / ApprovalOptions

Interface: ApprovalOptions ​

Defined in: sdk/ts/sdk/src/agent/approval.ts:30

What agentLoop({ approval }) takes.

Properties ​

name? ​

optional name?: string

Defined in: sdk/ts/sdk/src/agent/approval.ts:34

Signal name prefix. Default DEFAULT_APPROVAL_SIGNAL.


onTimeout? ​

optional onTimeout?: "fail" | "reject"

Defined in: sdk/ts/sdk/src/agent/approval.ts:41

What an unanswered request becomes: "reject" (default) tells the decider the call was not approved and carries on; "fail" fails the run.


timeoutMs? ​

optional timeoutMs?: number

Defined in: sdk/ts/sdk/src/agent/approval.ts:36

How long to wait for a reply. Without one the run waits until somebody answers.


tools ​

tools: readonly string[]

Defined in: sdk/ts/sdk/src/agent/approval.ts:32

Names of the tools that need a yes before they run. Each must be a key of tools.