Skip to contents

Returns a list of tools for code execution:

  • run_r_code - Execute R code (sandboxed by default)

  • run_bash - Execute bash commands

Note: These tools require appropriate permissions. By default, permissions_standard() allows R code but not bash.

Usage

tools_code()

Value

A list of tool definitions

Examples

if (FALSE) { # \dontrun{
agent <- Agent$new(
  chat = ellmer::chat("openai/gpt-4o"),
  tools = tools_code()
)
} # }