toolDeniedResult
function toolDeniedResult( toolName, deniedBy?, reason?): ToolDeniedResult;What the model sees when a human declines a needsApproval tool it asked to run.
A result rather than an error, so the agent can tell the user the request was declined
instead of the turn dying. __denied (not error: true) keeps it distinguishable from a
genuine failure — nothing malfunctioned.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
|
|
|
|