๐งชTDD Challengeยทintermediateยทโฑ๏ธ 35โ55mยทโญ 200 XP
M-042Build a ReAct Web Research Agent
Description
Nebula Corp wants a research agent that can answer complex questions by searching the web, reading pages, and synthesizing information. The agent should follow the ReAct pattern: Think about what to do, Act by calling a tool, Observe the result, and repeat until it has enough information to answer. The skeleton has tools for searching and reading, but the ReAct loop isn't implemented yet.
Test Cases (3)
Completes ReAct loop
Agent should think, act, observe, and produce answer
Input:reactAgent("What is RAG vs fine-tuning?")
Expected:CONTAINS:RAG
Uses search tool
Agent should call the search tool
Input:reactAgent("What is RAG vs fine-tuning?")
Expected:CONTAINS:web_search
Synthesizes information
Agent should synthesize from multiple sources
Input:reactAgent("Compare RAG and fine-tuning")
Expected:CONTAINS:Fine-tuning
Related Lessons
Click Run / Check to validate your solution