Agents

ReAct

1 min read

In Short

A prompting framework combining Reasoning and Acting, where agents alternate between thinking about what to do and taking actions.

ReAct (Reason + Act) improves agent reliability by making reasoning explicit and interleaved with actions.

Pattern

  1. Thought: Reason about current situation
  2. Action: Choose and execute action
  3. Observation: Note the result
  4. Repeat until done

Benefits

  • Interpretable reasoning
  • Better error recovery
  • Improved accuracy on complex tasks
agentsframeworksreasoning