Tutorials ASP.NET Core with Agentic AI Tutorial
AI Planners — Complete Guide
AI Planners — Complete Guide: free step-by-step lesson with examples, common mistakes, and interview tips — part of ASP.NET Core with Agentic AI Tutorial on Toolliyo Academy.
On this page
ASP.NET Core with Agentic AI Tutorial · Lesson 26 of 100
AI Planners
AI basics → Agents
AI basics · 1 — Setup · ~6 min · Module 3: Semantic Kernel
What is this?
Planners let Semantic Kernel decompose a goal into a sequence of function calls automatically. AgentNest uses function-calling planners for exploratory ERP analytics where steps are not hard-coded.
Why should you care?
Ad-hoc analyze-this-quarter questions need dynamic plans; fixed pipelines fail when users change intent.
See it live — copy this example
Paste into an ASP.NET Core 8+ / AgentNest project, then run with dotnet run (set your API keys in user-secrets).
// AgentNest.Agents/Planning/ErpPlannerAgent.cs
public sealed class ErpPlannerAgent(Kernel kernel)
{
public async Task<string> RunAsync(string goal, CancellationToken ct)
{
var planner = new FunctionCallingStepwisePlanner();
var plan = planner.CreatePlan(kernel, goal);
var result = await plan.InvokeAsync(kernel, cancellationToken: ct);
return result.GetValue<string>() ?? "";
}
}
What happened?
- FunctionCallingStepwisePlanner asks the model which GlPlugin tools to call next until the goal is satisfied.
- Follow the steps below — typing the code yourself is the fastest way to learn.
Practice next
- Register GlPlugin and AnalyticsPlugin on the kernel.
- Wrap planner calls with MaxIterations guard.
- Log each planned step to AgentNest audit.
- Require user confirmation after plan preview JSON.
- Swap planner model to cheaper deployment for planning only.
Remember
Planners dynamically sequence kernel functions. Use for flexible ERP and analytics questions. Cap iterations and audit every planned step.
CFO ad-hoc analysis
Finance lead asks natural-language questions during board prep.
Outcome: ErpPlannerAgent chains balance and variance tools without a fixed diagram.
Interview prep for this lesson
Practice these questions aloud after reading—each links to a full structured answer.
Sign in to ask a question or upvote helpful answers.
No questions yet — be the first to ask!