Learn R Programming

aisdk (version 1.1.0)

create_planner_agent: Create a PlannerAgent

Description

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.

Usage

create_planner_agent(name = "PlannerAgent")

Value

An Agent object configured for planning and reasoning.

Arguments

name

Agent name. Default "PlannerAgent".

Examples

Run this code
# \donttest{
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"
  )
}
# }

Run the code above in your browser using DataLab