Skip to contents

Returns a list of tools for file operations:

  • read_file - Read file contents

  • write_file - Write content to files

  • list_files - List directory contents

Usage

tools_file()

Value

A list of tool definitions

Examples

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