Design a Long-Running Research Agent
In this article
- Plan a long research run as fixed stages with a search and cost budget that code enforces.
- Keep an evidence ledger so every claim in the report points to the page it came from.
- Predict what a killed research run does when it resumes, and why it repeats no finished search.
- Write the report line for two sources that disagree, and the partial report a run returns at its cap.
- Terms defined here: evidence ledger.
Overview
The procurement team at Brightline, a made-up home-internet provider, is choosing a call-recording vendor. They want to know one thing about each of three vendors: how long it keeps recordings of customer calls, and what its terms say about deleting them. They ask for an agent that searches the web, reads the vendors' terms and writes a short comparison.
A job like this runs for many minutes, makes dozens of searches and costs real money. It can also crash halfway, meet two pages that say different things, or run out of budget before it finishes. You will see how to plan the run so it stops on its own, keep a record that ties every claim to a page, resume a killed run without paying twice, and report a conflict or a gap honestly.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- Searching until done
- The evidence ledger
- Killed after stage 3
- When two pages disagree
- Running out of budget
- The design at work
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions