create_planner_agent: Create a PlannerAgent

View source: R/agent_library.R

create_planner_agentR Documentation

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")

Arguments

name

Agent name. Default "PlannerAgent".

Value

An Agent object configured for planning and reasoning.

Examples


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"
  )
}


aisdk documentation built on May 29, 2026, 9:07 a.m.