Skip to main content

register_approval_callback

Function
This function is defined in the main module.
Register a global approval callback function for dangerous tool operations.

Signature

def register_approval_callback(callback_fn: Any) -> Any

Parameters

callback_fn
Any
required
Function that takes (function_name, arguments, risk_level) and returns ApprovalDecision

Returns

Returns
Any
The result of the operation.