Create the Bash tool
Usage
bash_tool(mode = "default", rules = list(), ask_fn = NULL, sandbox = NULL)Arguments
- mode
Character. Permission mode (see PermissionMode).
- rules
List.
PermissionRule()objects.- ask_fn
Function or NULL.
function(tool_name, input) -> logical. Called when permission is"ask".- sandbox
List or NULL. Bash sandbox profile (see
.sandbox_profile()):list(enabled, allow_network, keep_env). When enabled, scrubs the command environment and can block network utilities.
Value
An ellmer::tool() object.