Class PlanningStep
Represents a single step in the planning process.
Each step captures the thought, action, and observation from one iteration of the planning loop.
public sealed class PlanningStep
- Inheritance
-
PlanningStep
- Inherited Members
Constructors
- PlanningStep(int, PlanningStepType, string, string, string, string)
Initializes a new instance of the PlanningStep class.
Properties
- Action
Gets the action taken in this step.
May be a tool call, a sub-task, or another action type depending on the strategy.
- Observation
Gets the observation or result from the action.
Contains the outcome of the action, such as tool output or intermediate results.
- RawOutput
Gets the raw model output for this step.
- StepNumber
Gets the step number (1-based).
- Thought
Gets the thought or reasoning for this step.
Contains the agent's internal reasoning about what to do next.
- Timestamp
Gets the timestamp when this step was recorded.
- Type
Gets the type of this step.
Methods
- CreateAction(int, string, string, string)
Creates an action step.
- CreateFinalAnswer(int, string, string)
Creates a final answer step.
- CreateReAct(int, string, string, string, string)
Creates a complete ReAct step with thought, action, and observation.
- CreateReflection(int, string, string)
Creates a reflection step.
- CreateThought(int, string, string)
Creates a thought step.