Create the default intelligent terminal agent for console_chat(). This agent can execute commands, manage files, and run R code through natural language interaction.
Usage
create_console_agent(
working_dir = getwd(),
sandbox_mode = "permissive",
additional_tools = NULL,
language = "auto"
)Examples
if (FALSE) { # \dontrun{
# Create default console agent
agent <- create_console_agent()
# Create with custom working directory
agent <- create_console_agent(working_dir = "~/projects/myapp")
# Use with console_chat
console_chat("openai:gpt-4o", agent = agent)
} # }