View source: R/console_agent.R
| create_console_tools | R Documentation |
Create a set of tools optimized for console/terminal interaction.
The default "minimal" profile exposes only bash, read_file,
write_file, and edit_file. Use profile = "legacy" for the prior
broad tool surface including R, image, Feishu, skill, and inspection tools.
create_console_tools(
working_dir = tempdir(),
sandbox_mode = "permissive",
startup_dir = working_dir,
profile = c("minimal", "legacy"),
extensions = "auto"
)
working_dir |
Working directory for sandboxed tool execution. Defaults to |
sandbox_mode |
Sandbox mode: "strict", "permissive", or "none" (default: "permissive"). |
startup_dir |
R session startup directory used for project-aware context. Defaults to |
profile |
Console profile. |
extensions |
Extension loading mode. Defaults to |
A list of Tool objects.
if (interactive()) {
tools <- create_console_tools()
# Use with an agent or session
session <- create_chat_session(model = "openai:gpt-4o", tools = tools)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.