Class PlannerAgentTemplate
A template for creating task planning and project management agents.
Planner agents excel at breaking down complex goals into actionable steps, identifying dependencies, and creating structured plans.
public sealed class PlannerAgentTemplate : AgentTemplate
- Inheritance
-
PlannerAgentTemplate
- Inherited Members
Examples
var agent = new PlannerAgentTemplate()
.WithModel(model)
.WithPlanningStyle(PlanningStyle.Agile)
.WithTimeEstimates(true)
.Build();
var result = await agent.RunAsync("Plan the launch of a new product feature");
Properties
- TemplateName
Gets the template name.
Methods
- ConfigureBuilder(AgentBuilder)
Configures the agent builder with template-specific settings.
- WithConstraints(string)
Sets constraints to consider in planning.
- WithMilestones(bool)
Sets whether to include milestones.
- WithModel(LM)
Sets the model for the agent.
- WithPlanningStyle(PlanningStyle)
Sets the planning methodology style.
- WithRiskAnalysis(bool)
Sets whether to include risk analysis.
- WithTimeEstimates(bool)
Enables time estimates for tasks.