ReAct Pattern: Interleaving Reasoning and Action for LLM Agents › Key Agent Parameters
Michael BrenndoerferFebruary 3, 20261 min read
Language AI HandbookAll chapters Part 48 of 67Tool Use and Agents
ReAct Pattern: Interleaving Reasoning and Action for LLM Agents › Key Agent ParametersOne section · Sections in this chapter8 / 14 ↓
Sections in this chapter14
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
The key parameters for the ReActAgent are:
- tools: A dictionary mapping tool names to callable functions. These define the action space available to the agent and determine what capabilities the system can use to solve problems. Choosing the right tools is the most important architectural decision in building a ReAct agent.
- max_iterations: The maximum number of thought-action-observation cycles allowed before the agent terminates. This safety parameter prevents infinite loops if the model cannot reach a conclusion or enters a repetitive cycle. Ten iterations is a reasonable default for most question-answering tasks, but complex coding or research tasks may need 20-50.