Package com.tnsai.reasoning.react
Class ReActStep
java.lang.Object
com.tnsai.reasoning.react.ReActStep
Represents a single step in a ReAct (Reason + Act + Observe) loop.
Each step captures the three phases:
- Thought - The agent's reasoning about what to do next
- Action - The action taken (tool call, LLM query, etc.)
- Observation - The result of the action
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ReActStep.Builderbuilder()format()Returns a formatted representation of this step.intbooleanReturns true if this step includes an action (not just a thought).booleanReturns true if this step includes an observation.toString()
-
Method Details
-
getStepNumber
public int getStepNumber() -
getThought
-
getAction
-
getActionInput
-
getObservation
-
getTimestamp
-
getDuration
-
hasAction
public boolean hasAction()Returns true if this step includes an action (not just a thought). -
hasObservation
public boolean hasObservation()Returns true if this step includes an observation. -
format
Returns a formatted representation of this step. -
builder
-
toString
-