Large language models
Definition pending

ReAct

Definition pending

We've cataloged "ReAct" but haven't written a full definition yet. Definitions are hand-curated rather than auto-generated, so it takes time to cover every term.

Want this one prioritized? Email us and we'll bump it.

Practical example

ReAct (Reasoning + Acting) is a prompt pattern where the model alternates between thinking steps and action steps. "Thought: I need to look up the user's order. Action: search_orders(user_id=123). Observation: [results]. Thought: I now have the order details. Answer: ..." This pattern enables tool use — the model decides when to call an API, a database, or a calculator.

Workflow example

Implement ReAct: (1) define a tool schema (function name, description, parameters), (2) pass tools to model in system prompt with ReAct format, (3) parse model output for Action: blocks, execute the tool call, inject Observation: block, (4) loop until model outputs Final Answer: or max 10 iterations, (5) monitor tool_call_count and loop_iterations — if iterations consistently hit max, your tool descriptions are unclear or the model doesn't know when to stop.