View source: R/agent_library.R
| create_planner_agent | R Documentation |
Creates an agent specialized in breaking down complex tasks into steps using chain-of-thought reasoning. The planner helps decompose problems and create action plans.
create_planner_agent(name = "PlannerAgent")
name |
Agent name. Default "PlannerAgent". |
An Agent object configured for planning and reasoning.
if (interactive()) {
planner <- create_planner_agent()
result <- planner$run(
"How should I approach building a machine learning model for customer churn?",
model = "openai:gpt-4o"
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.