Bird
0
0

Why does a ReAct agent alternate between reasoning and acting steps instead of performing all reasoning first?

hard📝 Conceptual Q10 of 15
LangChain - Agents
Why does a ReAct agent alternate between reasoning and acting steps instead of performing all reasoning first?
ABecause reasoning is slower than acting and must be minimized
BTo iteratively gather information and refine actions based on new data
CTo reduce the number of API calls by batching actions
DBecause acting steps do not depend on reasoning results
Step-by-Step Solution
Solution:
  1. Step 1: Understand ReAct agent workflow

    ReAct agents alternate reasoning and acting to gather info and update decisions.
  2. Step 2: Evaluate why this is beneficial

    This iterative approach refines actions based on new data, improving accuracy.
  3. Final Answer:

    To iteratively gather information and refine actions based on new data -> Option B
  4. Quick Check:

    ReAct alternates to refine decisions iteratively = A [OK]
Quick Trick: ReAct loops reasoning and acting to improve results [OK]
Common Mistakes:
MISTAKES
  • Thinking reasoning is always done first
  • Assuming acting is independent
  • Believing it reduces API calls by batching

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LangChain Quizzes