mirror of
https://github.com/open-jarvis/OpenJarvis.git
synced 2026-07-28 05:12:26 +00:00
web_search returned thin, unlabeled results (Tavily default search_depth, **title**/url/content blob), so small models in the native_react loop tended to echo URLs instead of synthesizing content (#390). Query Tavily with search_depth="advanced" and format each result as a labeled block: ### {title} Source: {url} Summary: {content or snippet} joined by `---` separators. DuckDuckGo fallback uses the same labeled shape. Falls back to a result's `snippet` when `content` is absent. Extracted from #448 (the web_search portion only; that PR also bundled an unrelated install.sh rewrite, left out of scope here). Credit to @sanjayravit for the original fix. Adds tests asserting the labeled format, the snippet fallback, and search_depth="advanced"; updates the max_results test for the new call signature. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>