๐Ÿš€ Everything is free โ€” help us improve! Submit feedback and shape the platform.
๐Ÿงช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