Skip to main content

Unique Web Search

Configurable web search tool for Unique assistants: search the web, read pages, and return citation-ready content chunks.

Outbound web access should go through Unique Search Proxy (connectors/unique_search_proxy/). When SEARCH_PROXY_BASE_URL is set, search and crawl calls use unique-search-proxy-sdk; credentials and provider egress stay on the proxy pod.

Mode When Behaviour
Proxy (recommended) SEARCH_PROXY_BASE_URL set _proxy_search / _proxy_crawl via the SDK
Legacy URL unset Direct provider calls from this process (_legacy_search / _legacy_crawl)
  • New standard engines (Brave, Perplexity) are proxy-only — legacy raises.
  • Custom API uses proxy egress only when FEATURE_FLAG_SEARCH_PROXY_ENABLE_CUSTOM_API_UN_26736 is enabled; otherwise the legacy path reports URL-safety outcomes without blocking.
  • Future provider work targets Search Proxy only; legacy is preserved for migrated engines.

Packages involved: unique-search-proxy-core (schemas), unique-search-proxy-sdk (HTTP), unique-search-proxy (server). System overview: connectors/unique_search_proxy/README.md.

Architecture

Web Search Tool Architecture

Search engine kinds

Query → normalised results (URL / title / snippet / optional content). Optional page crawl via the configured crawler.

Engine Proxy Notes
Google legacy + proxy Requires scraping by default
Brave proxy-only Rich snippets; configurable requires_scraping (on by default); ExposableParam knobs
Perplexity proxy-only Content extraction knobs; configurable requires_scraping (on by default); ExposableParam
Custom API legacy + proxy Your REST endpoint; proxy mode rejects redirects

Standard engines that live in proxy-core use ExposableParam (expose + value) for optional provider knobs. See Search Engines README.

Agent search (grounding)

An upstream AI agent / grounded model searches and returns opaque text that this tool parses into WebSearchResults. Bing results take their URLs only from the citations Foundry attaches to the answer, never from the answer text.

Engine Proxy Notes
Bing (Azure AI Foundry grounding) legacy + proxy Configurable requires_scraping; fixed market / freshness chosen by an admin, with market falling back to BING_AGENT_DEFAULT_MARKET
VertexAI (Gemini grounding) legacy + proxy Configurable requires_scraping

Bing's grounding knobs are baked into the hashed Foundry agent name, so changing one provisions a new agent version.

Web crawlers (page readers)

Crawler Auth Notes
Basic none HTTP + content-type toggles; tool-local url_blocked_patterns (legacy)
Tavily TAVILY_API_KEY Extract API
Jina JINA_API_KEY Reader API
Firecrawl FIRECRAWL_API_KEY Batch scrape

No Crawl4AI. Crawler configs have no exposable LLM knobs.

Execution modes

Mode Status Behaviour
V1 Stable Refine query → search → crawl → process
V2 Stable Parallel plan steps (search / read URL)
V3 Experimental Agent loop: snippet search vs on-demand read_urls

Proxy vs legacy is transparent to executors.

Detailed subsystem docs

Activity Records

Records are written only when the host runs the activity records outbox and both FEATURE_FLAG_ENABLE_WEB_SEARCH_ACTIVITY_RECORDS_UN_28965 and FEATURE_FLAG_ENABLE_ACTIVITY_RECORDS_EVENTS_UN_22616 are on. ..._UN_28965 is evaluated for the company and the user, so a user-level rule applies. ..._UN_22616 is evaluated for the company only. Delivery is best effort: a failed enqueue is logged and the search carries on. A successful call that sent no query emits no record.

If ..._UN_28965 is on but no outbox is running, each tool call increments unique_activity_event_outbox_record_failures_total and one warning is logged per process.

With that in place, each tool call emits one web-search.query.sent per outgoing query, or one web-search.tool.denied / web-search.tool.failed when it sent no query. The criticalData keys are defined as TypedDicts in activity_record.py:

Key Records Content
chatId, messageId, toolCallId all Where the call happened
userPrompt all User message, cut at 4096 characters
userPromptTruncated all, optional true when userPrompt was cut
args all Validated tool parameters, or the raw arguments if validation failed
argumentScreening all status (notRun, approved, rejected) and reason
elicitation all status and proposedQueries
query query.sent The query sent to the engine
params query.sent Exposed provider parameters, null when there are none
egress query.sent viaSearchProxy, endpoint origin, optional destination origin
responseReceived query.sent Whether the engine answered, error status included
error query.sent, optional Exception class name when the search raised
reason denied / failed, optional Exception class name, or ArgumentScreeningBlocked

Configuration

  • SEARCH_PROXY_BASE_URL — enables the Search Proxy client
  • Provider API keys (on the proxy pod when proxy is enabled; otherwise on assistants-core for legacy)
  • Search / crawler / content-processing settings via WebSearchConfig

Dependency management (uv.lock + min/latest testing)

This package is a library and uses uv for dependency management.

We run tests additionally with minimal dependencies to ensure that the listed ranges are valid. NOTE: We use lowest-direct, not lowest. Lowest attempts to use the lowest possible dependency versions transitively causing issues if a dependency has incorrect metadata. Example:

  • google-cloud-aiplatform says it works with shapely<3.0.0.
  • The lowest resolver assumes 1.0 which needs python 2 -> breaks Therefore we use lowest-direct which only sets our direct dependencies to lowest. However, this only correctly verifies our min dependencies if our code correctly lists all the required dependencies and never imports a transitive dependency. We therefore use deptry to ensure we don't use transitive dependencies and that we have no unused dependencies.

Test locally

  • Latest deps and deptry:
cd tool_packages/unique_web_search
uv sync
uv run pytest
uv run deptry
  • Min deps:
cd tool_packages/unique_web_search
uv venv
uv pip install -e . --resolution=lowest-direct
uv export --only-group dev --no-hashes | uv pip install -r -
uv run --no-sync pytest

Metadata

Release files for unique-web-search 2026.48.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for unique-web-search 2026.48.1
File Size Uploaded Provenance Actions
unique_web_search-2026.48.1.tar.gz 128.1 kB Without provenance Details for unique_web_search-2026.48.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for unique-web-search 2026.48.1
File Interpreter ABI Platform Actions
unique_web_search-2026.48.1-py3-none-any.whl Python 3 none any Details for unique_web_search-2026.48.1-py3-none-any.whl

Total release size: 319.4 kB

Release files / unique_web_search-2026.48.1.tar.gz

Download URL unique_web_search-2026.48.1.tar.gz
Size 128.1 kB
Tags Source
SHA-256 checksum
How to use checksums
694cc233dcc80f3157f5bd11e7c154543bc54be5e299b49206bcd869f92c3cda
BLAKE2b-256 checksum
How to use checksums
7752037fd40b8cac1555193e33ca83aa2974d8107fb0b265f3670606a1340bf7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / unique_web_search-2026.48.1-py3-none-any.whl

Download URL unique_web_search-2026.48.1-py3-none-any.whl
Size 191.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d335f060d4c025e3ba3ba6ceea2796c4bedfe56a309483b0807fb2327591ad0
BLAKE2b-256 checksum
How to use checksums
db3e5221a76fa2b42aaf5dafadfb628ba7fc88590900a6346e8dcffc5e7e57c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for unique-web-search 2026.48.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2026.48.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page