Package com.tnsai.reasoning.react
Class ReActResult
java.lang.Object
com.tnsai.reasoning.react.ReActResult
Result of a ReAct (Reason + Act + Observe) execution.
Contains the final answer, all reasoning steps, and execution metadata.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ReActResult.Builderbuilder()Gets the total execution duration.Gets the final answer produced by the ReAct loop.Gets the full reasoning trace as a formatted string.Gets the execution status.intGets the number of steps executed.getSteps()Gets all reasoning steps (thought → action → observation).intGets the total number of LLM calls made.booleanReturns true if the execution completed successfully with a final answer.toString()
-
Method Details
-
getFinalAnswer
Gets the final answer produced by the ReAct loop. -
getSteps
Gets all reasoning steps (thought → action → observation). -
getStepCount
public int getStepCount()Gets the number of steps executed. -
getStatus
Gets the execution status. -
getDuration
Gets the total execution duration. -
getTotalLLMCalls
public int getTotalLLMCalls()Gets the total number of LLM calls made. -
isSuccess
public boolean isSuccess()Returns true if the execution completed successfully with a final answer. -
getReasoningTrace
Gets the full reasoning trace as a formatted string. -
builder
-
toString
-