ExecuteShellCommandTool
class ExecuteShellCommandTool(executor: ShellCommandExecutor, confirmationHandler: ShellCommandConfirmationHandler) : Tool<ExecuteShellCommandTool.Args, ExecuteShellCommandTool.Result> (source)
Executes shell commands with user approval and automatic timeout.
Before running any command, asks the user for confirmation. If approved, runs the command and captures everything it prints. If the command takes too long, cancels it automatically.
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun execute(args: ExecuteShellCommandTool.Args, enabler: DirectToolCallsEnabler): ExecuteShellCommandTool.Result
Link copied to clipboard
suspend fun executeUnsafe(args: Any?, enabler: DirectToolCallsEnabler): ExecuteShellCommandTool.Result