
Set approval callback for human-in-the-loop tool execution
set_approval_callback.Rd
Set approval callback for human-in-the-loop tool execution
Details
The callback function receives a list with the following elements:
name
: The name of the tool being calledarguments
: A list of arguments passed to the toolid
: The unique identifier for this tool call
The callback should return:
TRUE
to approve the tool executionFALSE
to deny the tool executionA character string to deny with a custom error message