Overview
This index links to one article per agent and also shows the workflow diagram for each agent.
Generate Mermaid PNGs
Use each agent’s built-in graph output (output = "both")
and save with save_mermaid_png():
library(LLMAgentR)
dummy_llm <- function(prompt, verbose = FALSE) "LLM response placeholder"
workflows <- list(
"code-agent" = build_code_agent(
llm = dummy_llm,
output = "both",
direction = "LR"
),
"sql-agent" = build_sql_agent(
model = dummy_llm,
connection = NULL,
output = "both",
direction = "LR"
),
"research-agent" = build_researcher_agent(
llm = dummy_llm,
tavily_search = "your-tavily-key",
output = "both",
direction = "LR"
),
"interpreter-agent" = build_interpreter_agent(
llm = dummy_llm,
output = "both",
direction = "LR"
),
"document-summarizer-agent" = build_doc_summarizer_agent(
llm = dummy_llm,
output = "both",
direction = "LR"
),
"data-cleaning-agent" = build_data_cleaning_agent(
model = dummy_llm,
output = "both",
direction = "LR"
),
"forecasting-agent" = build_forecasting_agent(
model = dummy_llm,
output = "both",
direction = "LR"
),
"data-wrangling-agent" = build_data_wrangling_agent(
model = dummy_llm,
output = "both",
direction = "LR"
),
"weather-agent" = build_weather_agent(
llm = dummy_llm,
location_query = "Accra, Ghana",
weather_api_key = "your-openweathermap-key",
output = "both",
direction = "LR"
),
"feature-engineering-agent" = build_feature_engineering_agent(
model = dummy_llm,
output = "both",
direction = "LR"
),
"visualization-agent" = build_visualization_agent(
model = dummy_llm,
output = "both",
direction = "LR"
)
)
dir.create("pkgdown/assets", recursive = TRUE, showWarnings = FALSE)
for (id in names(workflows)) {
save_mermaid_png(
x = workflows[[id]],
file = file.path("pkgdown", "assets", paste0(id, "-workflow.png"))
)
}Core Agents
Code Generation Agent
Article: Code Generation Agent

workflow <- build_code_agent(
llm = dummy_llm,
output = "both",
direction = "LR"
)
save_mermaid_png(workflow, "pkgdown/assets/code-agent-workflow.png")SQL Query Agent
Article: SQL Query Agent

workflow <- build_sql_agent(
model = dummy_llm,
connection = NULL,
output = "both",
direction = "LR"
)
save_mermaid_png(workflow, "pkgdown/assets/sql-agent-workflow.png")Research Agent
Article: Research Agent

workflow <- build_researcher_agent(
llm = dummy_llm,
tavily_search = "your-tavily-key",
output = "both",
direction = "LR"
)
save_mermaid_png(workflow, "pkgdown/assets/research-agent-workflow.png")Interpreter Agent
Article: Interpreter Agent

workflow <- build_interpreter_agent(
llm = dummy_llm,
output = "both",
direction = "LR"
)
save_mermaid_png(workflow, "pkgdown/assets/interpreter-agent-workflow.png")Document Summarizer Agent
Article: Document Summarizer Agent

workflow <- build_doc_summarizer_agent(
llm = dummy_llm,
output = "both",
direction = "LR"
)
save_mermaid_png(workflow, "pkgdown/assets/document-summarizer-agent-workflow.png")Data Cleaning Agent
Article: Data Cleaning Agent

workflow <- build_data_cleaning_agent(
model = dummy_llm,
output = "both",
direction = "LR"
)
save_mermaid_png(workflow, "pkgdown/assets/data-cleaning-agent-workflow.png")Forecasting Agent
Article: Forecasting Agent

workflow <- build_forecasting_agent(
model = dummy_llm,
output = "both",
direction = "LR"
)
save_mermaid_png(workflow, "pkgdown/assets/forecasting-agent-workflow.png")Data Wrangling Agent
Article: Data Wrangling Agent

workflow <- build_data_wrangling_agent(
model = dummy_llm,
output = "both",
direction = "LR"
)
save_mermaid_png(workflow, "pkgdown/assets/data-wrangling-agent-workflow.png")Weather Agent
Article: Weather Agent

workflow <- build_weather_agent(
llm = dummy_llm,
location_query = "Accra, Ghana",
weather_api_key = "your-openweathermap-key",
output = "both",
direction = "LR"
)
save_mermaid_png(workflow, "pkgdown/assets/weather-agent-workflow.png")Feature Engineering Agent
Article: Feature Engineering Agent

workflow <- build_feature_engineering_agent(
model = dummy_llm,
output = "both",
direction = "LR"
)
save_mermaid_png(workflow, "pkgdown/assets/feature-engineering-agent-workflow.png")Visualization Agent
Article: Visualization Agent

workflow <- build_visualization_agent(
model = dummy_llm,
output = "both",
direction = "LR"
)
save_mermaid_png(workflow, "pkgdown/assets/visualization-agent-workflow.png")