Find
C
ase-sensitive
R
egexp search
Path
Showing
5704be96
from
2026-12-02
:
Revert "Bug
2027947
- Save Taskbar Tab icons at creation and load them for the window. r=iholmes,desktop-integrations-reviewers" for causing macOS mochitests failures in browser_asrouter_targeting.js.
firefox-main
/
browser
/
components
/
aiwindow
/
models
/
search
Navigation
Enable keyboard shortcuts
Name
Description
Size
Coverage
moz.build
359
-
SearchProviders.sys.mjs
Search providers for the web search flow.
8712
-
SearchWorkflow.sys.mjs
Self-contained flow backing the search_the_web tool. Three paths: - Answers (SEARCH_THE_WEB_ANSWERS_PREF on and no custom endpoint, checked first): one call to Exa's /answers service, which does the retrieval and the writing itself and returns the answer plus the sources it cited. - Grounded (both prefs off, the default): one Exa retrieval, an on-demand page-read loop (bounded), grounded answer generation on a pinned model, and a non-LLM schema validation. - Fast (SEARCH_THE_WEB_FAST_PREF on): one Exa retrieval whose sanitized snippets go straight back to the main assistant, which answers from them or reads a page itself. Whichever runs, the main assistant answers from the result or searches again, within the per-response limit. Only a search provider failure falls back to a Google handoff. The paths are deliberately kept as separate entrypoints so that whichever ones lose can be deleted whole. All the logic lives here as functions — there is no separate agent object because there is no state to carry between calls.
42180
-