Enum PlanningStepType
Identifies the type of a planning step.
public enum PlanningStepType
Fields
Thought = 0A reasoning or thought step where the agent considers the problem.
Action = 1An action step where the agent performs an operation (e.g., tool call).
ReAct = 2A combined ReAct step containing thought, action, and observation.
Reflection = 3A reflection step where the agent critiques or evaluates its work.
Plan = 4A plan step outlining future actions.
FinalAnswer = 5The final answer or response step.
Examples
Filtering a recorded trace to only reflection steps:
using LMKit.Agents.Planning;
foreach (var step in executor.PlanningContext.Steps.Where(s => s.Type == PlanningStepType.Reflection))
{
Console.WriteLine($"Reflection #{step.StepNumber}: {step.Thought}");
}