feat(exa): add attribution header and expose full search surface#5
Merged
tao-hpu merged 1 commit intoApr 21, 2026
Merged
Conversation
…surface Closes gaps against https://exa.ai/docs/reference/search: - Send `x-exa-integration: fim-one` so API usage is attributed back to the FIM One integration in Exa's maintainer view. - Support all current search types (auto/neural/fast/deep-lite/deep/ deep-reasoning/instant) via EXA_SEARCH_TYPE. - Request highlights + text together (and optional summary) and cascade the snippet through whichever fields the API populated. - Expose category, include/exclude domains, published-date range, and maxAgeHours, all configurable via env vars. - Document the new knobs in example.env. - Add focused unit tests for snippet cascade, payload shape, env var resolution, and the attribution header on the wire.
tao-hpu
added a commit
that referenced
this pull request
Apr 21, 2026
…butor Credits PR #5 author (Exa integration expansion) in the all-contributors wall with Code + Tests emoji. First Founding Contributor under the Pioneer Program. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
|
Thanks for the contribution, @tgonzalezc5! Merged. The integration attribution header and the full search-type surface (including |
Contributor
|
@tgonzalezc5 — noticed DMs are closed on X. If there's an email or Slack channel for partnership-related follow-ups (OSS/startup credits, Featured Integration listing, co-marketing, etc.), happy to take it there. Otherwise no worries — the integration ships either way. |
tao-hpu
added a commit
that referenced
this pull request
Apr 22, 2026
Add auto (Exa's recommended default) to the search-type list and split recency into date ranges + max-age windows to match the actual filter semantics. Prevents copy drift between the partner-facing email and the public docs page. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Enhances the existing Exa search backend (
src/fim_one/core/web/search/exa.py) to close gaps against the current Exa Search API reference:x-exa-integration: fim-oneon every request so API usage is attributed back to the FIM One integration in Exa's maintainer view (attribution only; no per-user data).auto/neural/fast/deep-lite/deep/deep-reasoning/instant) viaEXA_SEARCH_TYPE.highlights+texttogether (and optionalsummary), and cascades the result snippet through whichever fields the API populates, matching the Exa docs' multi-content semantics.category,includeDomains,excludeDomains,startPublishedDate,endPublishedDate, andmaxAgeHours— all configurable via constructor args or env vars soget_web_searcher()still selects Exa generically.search_typeandcategoryon construction (fail fast on typos).example.env.Fully backwards-compatible: default behaviour (
type: "auto", text + highlights, 800-char snippets) is a strict upgrade over the previous text-only mode, andExaSearch(api_key=...)keeps working unchanged.Example
Or entirely via env:
Files changed
src/fim_one/core/web/search/exa.py— payload builder, snippet cascade, env-driven config, attribution headertests/test_web_providers.py— unit tests for snippet cascade, payload shape, env var resolution, attribution header on the wireexample.env— document newEXA_*variablesTest plan
uv run ruff check src/fim_one/core/web/search/exa.py tests/test_web_providers.py— passesuv run mypy src/fim_one/core/web/search/exa.py— passesuv run pytest tests/test_web_providers.py— 50 tests pass (18 new, all green)uv run pytest tests/ --ignore=tests/test_sandbox_backend.py— 3060 tests pass, no regressions (Docker sandbox suite requires a local Docker daemon and was not run)EXA_API_KEY(not run in this environment; recommend a maintainer verify)