Event ToolApprovalRequired
Fired when a tool invocation requires user approval before execution.
public event EventHandler<ToolApprovalRequestEventArgs> ToolApprovalRequired
Returns
- EventHandler<ToolApprovalRequestEventArgs>
- Fired when a tool invocation requires user approval before execution.
- Implements
Examples
chat.ToolApprovalRequired += (sender, e) =>
{
// Auto-approve all tool calls
e.IsApproved = true;
};
Remarks
This event is raised when the ToolPermissionPolicy evaluates a tool
and returns ApprovalRequired.
Set Approved to true to allow execution.