Codewalk
This research agent runs multiple search iterations, extracts facts from sources, and evaluates when it has enough information to provide a comprehensive answer. It uses prompt chaining for sequential research steps and evaluator-optimizer patterns for quality assessment.Architecture Overview
The research agent runs up to 3 iterations of search, fact extraction, and evaluation. Each iteration plans new searches based on what information is still missing, then judges whether the collected facts are sufficient before continuing or generating a final summary.Implementation
This example shows how to build research agents that improve their results through multiple iterations, using quality gates to determine when they have enough information.Research Agent
Search Planner: Adaptive Query Generation
Search Planner: Adaptive Query Generation
Web Search: Content Discovery
Web Search: Content Discovery
Content Converter: Website to Markdown
Content Converter: Website to Markdown
Fact Extractor: Structured Information Mining
Fact Extractor: Structured Information Mining
Quality Gates: Completeness Assessment
Quality Gates: Completeness Assessment
Summarizer: Comprehensive Report Generation
Summarizer: Comprehensive Report Generation

