README来源: main@26186fe4
web-search-yandex
Improved web search for the DeepSeek Harness web capability seam (ctx.web)
with Yandex support: a WebSearchProvider backed by the
Yandex Search API v2
synchronous XML endpoint, plus a settings UI card.
What it does
POST /search/api/v2/searchwith anApi-Keyheader,FORMAT_XMLresponses.- Each
<doc>maps to one source:url/titledirectly, the first<passage>(falling back to<headline>) as the snippet,<modtime>normalized to ISO-8601. Documents without a URL are dropped; duplicates are deduplicated by URL in document order. - API errors surface as structured
WEB_PROVIDER_ERROR; aborts asWEB_ABORTED; a missing key asWEB_PROVIDER_CREDENTIAL_MISSINGwith an actionable message.
Credential handling (by design)
No secret ever enters configuration files, the settings document, or this repository:
- The API key is a credential reference (
YANDEX_SEARCH_API_KEY) resolved per search through the DSH credentials service, or the launching environment. - The settings card (
client-ui/) learns only whether a key is configured; the literal value never rides a response. Writes go through the credentials domain. apiKeyin config exists for literal overrides and is markedz.string().role('secret').
Usage
- id: web-search-yandex
name: '@deepseek-ai/dsh-web-search-yandex'
# all fields optional; folder id falls back to $YANDEX_FOLDER_ID
config:
apiKeyEnv: YANDEX_SEARCH_API_KEY
familyMode: MODERATE # NONE | MODERATE | STRICT
numResults: 10
Repository layout
src/— provider plugin (Cordis pluginweb-search-yandex)tests/— vitest unit tests (doc/response mapping, provider HTTP behavior)client-ui/— settings card (YandexSearchCard.tsx) and its staged-form controller for the DSH web UIpatches/— diffs wiring the card intoui-settings-pluginsand the agent preset rows
License
MIT
还没有评论,来写第一条。