What This Agent Does
build_data_cleaning_agent() recommends and applies
cleaning steps, runs code, and can explain what was done.
Generate Mermaid PNGs
library(LLMAgentR)
my_llm_wrapper <- function(prompt, verbose = FALSE) "LLM response placeholder"
workflow <- build_data_cleaning_agent(
model = my_llm_wrapper,
output = "both",
direction = "LR"
)
save_mermaid_png(
x = workflow,
file = "pkgdown/assets/data-cleaning-agent-workflow.png"
)Step 1: Build the Agent
library(LLMAgentR)
my_llm_wrapper <- function(prompt, verbose = FALSE) "LLM response placeholder"
data_cleaner <- build_data_cleaning_agent(
model = my_llm_wrapper,
human_validation = FALSE,
bypass_recommended_steps = FALSE,
bypass_explain_code = FALSE,
verbose = FALSE
)