weavert-web-research
Framework-level shared web research core used by chat, coding, local-assistant, and devtools adapters.
This package is the primitive substrate, not the public owner of the high-level web_research workflow surface.
What this package owns
- normalized source, page, and citation-ready web result structures
- shared public-host and domain-policy enforcement
- a provider registry for deterministic search provider selection, capability metadata, and fallback reporting
- framework-owned research-loop state for budget usage, source and evidence ledgers, provider/freshness events, bounded traces, conflicts, gaps, and stop classification
- a thin backend seam for search, page inspection, and page-local finding
- the default DuckDuckGo HTML plus direct-fetch backend used by first-party adapters
- optional Azure AI Foundry Bing grounding, Google Programmable Search, SerpAPI Google Search, and Brave Search API provider paths for configured deployments
Provider and freshness behavior
- DuckDuckGo HTML remains the no-credential fallback provider. It reports freshness as unsupported and the core post-filters domain policy.
- Bing grounding is available when
FOUNDRY_PROJECT_ENDPOINT,FOUNDRY_MODEL_DEPLOYMENT_NAME,BING_PROJECT_CONNECTION_ID, andAGENT_TOKENare set. SetWEAVERT_WEB_SEARCH_PROVIDER=bing-groundingto prefer it explicitly. This provider uses Azure AI Foundry Responses APIbing_groundingwith the configured project connection; it does not call the retired Bing Search API v7 endpoint atapi.bing.microsoft.com/v7.0/search. - Google Programmable Search is available when both
GOOGLE_SEARCH_API_KEYandGOOGLE_SEARCH_CXare set. SetWEAVERT_WEB_SEARCH_PROVIDER=google-searchto prefer it explicitly. - SerpAPI Google Search is available when
SERPAPI_API_KEYis set. SetWEAVERT_WEB_SEARCH_PROVIDER=serpapi-google-searchto prefer it explicitly. Optional defaultsWEAVERT_SERPAPI_GOOGLE_DOMAIN,WEAVERT_SERPAPI_HL, andWEAVERT_SERPAPI_GLcontrolgoogle_domain,hl, andgl; absent values default togoogle.com,en, andus. - Brave Search is available when
BRAVE_SEARCH_API_KEYorWEAVERT_BRAVE_SEARCH_API_KEYis set. SetWEAVERT_WEB_SEARCH_PROVIDER=brave-searchto prefer it explicitly. freshness_days,recency_days, or compactfreshness.daysmap to provider freshness only when the selected provider supports it. Otherwise results includefreshness_scope.status="unsupported".- Bing grounding returns grounding citations rather than raw search API records. The adapter maps result count and supported freshness hints into the Foundry grounding request, accepts only stable public
httporhttpsURLs as candidate results, and leaves framework-side public-host, allowed-domain, and blocked-domain validation authoritative. - Google, SerpAPI Google Search, and Brave domain allow/block constraints are mapped with
site:and-site:query operators, then revalidated by the shared core. SerpAPI normalizes onlyorganic_results;ai_overview, related questions, related searches, and pagination payloads are not treated as citation-ready sources. - Google freshness maps to
dateRestrict; Brave freshness maps to Brave'sfreshnessparameter; Bing grounding freshness maps to the supported Foundryfreshnessvalues for 1, 7, and 30 day windows. SerpAPI Google Search does not advertise provider-side freshness in this version. These are reported as provider-side freshness enforcement only when mapped, but final URL policy remains enforced by the shared core. - When Bing grounding, Google, SerpAPI Google Search, and Brave are all configured, the default registry tries Bing grounding first, then Google, then SerpAPI, then Brave, then DuckDuckGo HTML. Explicit
WEAVERT_WEB_SEARCH_PROVIDERselection still takes precedence and falls back through the remaining configured providers when fallback is allowed. - Default tests use deterministic
FixtureWebResearchProviderinstances and mocked provider responses. Live-provider smoke checks are opt-in by setting provider credentials and running targeted tests outside the default deterministic suite. - Profile-aware loops attach bounded source-quality metadata such as source class, duplicate cluster, profile-priority signals, freshness signals, and provider metadata. These signals explain selection and evaluation; they are not independent proof of factual truth.
- Ledger-bound claim annotations may be merged by higher-level kits only when they reference an existing source, page, or evidence handle. Rule-derived dates, versions, prices, numbers, source-type hints, and duplicate signals are auxiliary diagnostics, not truth validators.
Higher-level packages such as weavert-kit-common-web-research compose this core through their package adapters. The shared common web research kit owns the public web_research tool and its package-owned delegated worker.
Canonical names
- install name:
weavert-web-research - import root:
weavert_web_research
See also
../../README.md../../../product-kits/common/web-research/README.md
Release files for weavert-web-research 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| weavert_web_research-0.1.4.tar.gz | 26.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| weavert_web_research-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 51.6 kB
Release files / weavert_web_research-0.1.4.tar.gz
| Download URL | weavert_web_research-0.1.4.tar.gz |
|---|---|
| Size | 26.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1be4d5b3f14c8f9a6aa20e000cf5835144f1949a6e6b86be90eba32652c4459
|
|
BLAKE2b-256 checksum How to use checksums |
84b4c8d993b82736f9be277cf08c18c269ca7591d53244c2cdebaa9d44994f8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 3, 2026.
Transparency logRelease files / weavert_web_research-0.1.4-py3-none-any.whl
| Download URL | weavert_web_research-0.1.4-py3-none-any.whl |
|---|---|
| Size | 24.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
983613c05b791d8e61bc30625511cce7c8352de1e894babed5516f789eae3351
|
|
BLAKE2b-256 checksum How to use checksums |
2d100ba321b3c50bd9ee40e77ce38dc375f72516e927f9e70f29aef2e2595a9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 3, 2026.
Transparency log