Skip to contents

Convenience function to create a PostToolUse hook that logs tool calls using the cli package.

Usage

hook_log_tools(verbose = FALSE)

Arguments

verbose

If TRUE, include tool result in log

Value

A HookMatcher object

Examples

if (FALSE) { # \dontrun{
agent$add_hook(hook_log_tools())
} # }