withConfirmation

fun Tool.withConfirmation(messageProvider: (String) -> String): Tool

Wrap this tool to always require confirmation before execution.

Parameters

messageProvider

Function to generate the confirmation message from input


Wrap this tool to always require confirmation before execution.

Parameters

message

Static confirmation message