When the LLM calls the same web search query 4+ times consecutively, return an error telling it to stop and use existing results instead of silently returning cached results that the LLM ignores. Tracks consecutive duplicate searches via a simple counter keyed on the normalized query + parameters. Resets when a different query is searched. Threshold is 3 consecutive duplicates before the guard fires. File changed: search-the-web/tool-search.ts |
||
|---|---|---|
| .. | ||
| agents | ||
| extensions | ||
| skills | ||
| GSD-WORKFLOW.md | ||