Skip to contents

Returns a list of tools for code execution:

  • run_r_code - Execute R code in a separate process

  • run_bash - Execute bash commands

Note: These tools execute trusted code and require explicit permissions. Process separation is not an OS sandbox; permissions_standard() denies both tools.

Usage

tools_code()

Value

A list of tool definitions

Examples

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