Reasoning Modes
Purpose
1. ReAct Mode (Reasoning + Acting)
What is ReAct?
What ReAct Can Do:
What ReAct Cannot Do:
Correct Usage:
Agent (ReAct): Uses WebSearch and RAG tools to gather and summarize current information.
Incorrect Usage:
Problem: ReAct does not support code execution. Use CodeAct instead.
2. Reflection Mode
What is Reflection?
What Reflection Can Do:
What Reflection Cannot Do:
Correct Usage:
Agent (Reflection): Provides a response, rethinks the logic, and returns a refined, structured answer.
Incorrect Usage:
Problem: Reflection does not execute code or analyze structured data. Use CodeAct.
3. CodeAct Mode
What is CodeAct?
What CodeAct Can Do:
What CodeAct Cannot Do:
Correct Usage:
Agent (CodeAct): Analyzes the file, writes and runs code, returns the graph.
Incorrect Usage:
Problem: CodeAct can’t perform web searches. Use ReAct.
Summary
Feature | ReAct | Reflection | CodeAct |
---|---|---|---|
Step-by-step reasoning | Yes | Yes | Yes |
Use of external tools | Yes (Web, RAG, Attachments) | Yes (same tools as ReAct) | No |
Self-reflection and revision | No | Yes | No |
Code execution & file creation | No | No | Yes |
Data analysis & plotting | No | No | Yes |