ToolApprovalDeniedError
Thrown when a human denies a tool call that requires approval.
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ToolApprovalDeniedError( toolName, by?, reason?): ToolApprovalDeniedError;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
|
|
|
|
Returns
Section titled “Returns”ToolApprovalDeniedError
Overrides
Section titled “Overrides”Error.constructorProperties
Section titled “Properties”readonly optional by?: string;reason?
Section titled “reason?”readonly optional reason?: string;Why, when a policy refused. Human denials carry no reason — the human just said no.
toolName
Section titled “toolName”readonly toolName: string;