tool_approval library

Functions

toolApproval({List<String>? approved}) → GenerateMiddlewareRef<ToolApprovalOptions>
Interrupts any tool call whose name is not in the allow-list, so a human can approve it (by restarting with {'tool-approved': true}).