
Interactive human approval prompt for tool execution
prompt_human_approval.Rd
A default implementation of a human approval callback that prompts the user interactively to approve or deny tool execution.
Examples
if (FALSE) { # \dontrun{
# Set up an agent with interactive approval
agent <- new_agent("assistant", ellmer::chat_anthropic) |>
set_approval_callback(prompt_human_approval)
} # }