Skip to content
providerkit
GitHub

RequestPolicy

Defined in: agents/src/types.ts:96

Options for how a turn opens human requests (approvals, questions and client tools).

optional onePerTurn?: boolean;

Defined in: agents/src/types.ts:99

Open only the first pending request in a turn, then suspend. By default, every remaining approval-required call in the turn opens together so a person can answer them in one batch.


optional validateBeforeAsk?: boolean;

Defined in: agents/src/types.ts:103

Run each tool’s own accepts(arguments) before opening an approval for it. A call whose arguments the tool cannot accept skips approval, runs through invoke, and returns invalid_input to the model so nobody is asked to approve a call that would fail.