# \donttest{
if (interactive()) {
file_agent <- create_file_agent(
allowed_dirs = c("./data", "./output"),
allowed_extensions = c("csv", "json", "txt", "rds")
)
result <- file_agent$run(
"Read the sales.csv file and store it as 'sales_data'",
session = session,
model = "openai:gpt-4o"
)
}
# }
Run the code above in your browser using DataLab