powered by
Create a set of tools optimized for console/terminal interaction. Includes computer tools (bash, read_file, write_file, execute_r_code) plus additional console-specific tools.
create_console_tools(working_dir = tempdir(), sandbox_mode = "permissive")
A list of Tool objects.
Working directory. Defaults to tempdir().
tempdir()
Sandbox mode: "strict", "permissive", or "none" (default: "permissive").
# \donttest{ if (interactive()) { tools <- create_console_tools() # Use with an agent or session session <- create_chat_session(model = "openai:gpt-4o", tools = tools) } # }
Run the code above in your browser using DataLab