Package com.tnsai.reasoning.react
Class ReActExecutor.Builder
java.lang.Object
com.tnsai.reasoning.react.ReActExecutor.Builder
- Enclosing class:
ReActExecutor
Builder for ReActExecutor.
-
Method Summary
Modifier and TypeMethodDescriptionactionHandler(ActionHandler actionHandler) Sets the action handler for executing actions identified during reasoning.availableActions(String availableActions) Sets the description of available actions for the system prompt.build()llm(com.tnsai.llm.LLMClient llm) Sets the LLM client for reasoning.maxSteps(int maxSteps) Sets the maximum number of reasoning steps (default: 10).stopCondition(StopCondition stopCondition) Sets the stop condition for early termination.systemPrompt(String systemPrompt) Overrides the default system prompt entirely.thoughtFormat(ThoughtFormat thoughtFormat) Sets the thought format (default: STRUCTURED).Sets the execution timeout (default: 5 minutes).
-
Method Details
-
llm
Sets the LLM client for reasoning. -
actionHandler
Sets the action handler for executing actions identified during reasoning. -
maxSteps
Sets the maximum number of reasoning steps (default: 10). -
thoughtFormat
Sets the thought format (default: STRUCTURED). -
stopCondition
Sets the stop condition for early termination. -
timeout
Sets the execution timeout (default: 5 minutes). -
availableActions
Sets the description of available actions for the system prompt. -
systemPrompt
Overrides the default system prompt entirely. -
build
-