# \donttest{
if (interactive()) {
# 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)
}
# }
Run the code above in your browser using DataLab