feat(web-search): add optional You.com provider - #87
Merged
devanshrj merged 1 commit intoSep 21, 2026
Merged
Conversation
Add You.com as a fifth web_search provider alongside Exa, Tavily, Parallel, and Perplexity, following the existing provider pattern: - YDC_API_KEY secret with env fallback, read via ctx.secret() - POST https://ydc-index.io/v1/search with X-API-Key auth - provider: "youcom" selection plus auto fallback appended last - freshness / country / safesearch filters - README.md and MOD.md key documentation - version bump to 0.2.0 for the publish workflow
devanshrj
approved these changes
Sep 21, 2026
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.
This adds You.com as an optional fifth provider for the
@letta-ai/web-searchmod'sweb_searchtool, following the exact pattern used by the existing Exa, Tavily, Parallel, and Perplexity providers.What changed
{ id: "youcom", key: "YDC_API_KEY", label: "You.com" }appended toPROVIDERS— appended last, so the auto-selection order (Exa → Tavily → Parallel → Perplexity) is unchanged for existing users unless they setYDC_API_KEY.runYoucomSearch():POST https://ydc-index.io/v1/searchwithX-API-Keyauth via plainfetch(no new dependencies, same as the other providers), readingctx.secret("YDC_API_KEY", { envFallback: true }).freshness(day|week|month|year),country(ISO 3166-1 alpha-2),safesearch(off|moderate|strict) — all optional, all no-ops for other providers.YDC_API_KEYadded to the supported-keys list, auto-order, and provider guidance;providerenum and descriptions updated.@letta-ai/web-search.Setup
Same as the other providers — agent-scoped (recommended):
or environment fallback:
export YDC_API_KEY=... lettaAPI keys are available at you.com/platform/api-keys. No other configuration is needed; the tool remains fully functional with only the existing four providers.
Usage
Validation performed
npm run validate(manifests + catalog) passes.results.web[]withurl/title/description/snippets/page_age): formatting, API-error handling (returns a tool error result, does not throw), and missing-key handling (returns the/secret set YDC_API_KEY ...setup instructions) all pass.EXA_API_KEYset,autostill selects Exa and You.com is never consulted — default behavior is unchanged for existing users.Error handling
Missing key → tool error result with setup instructions (same copy pattern as the other providers). API errors → tool error result with status code and response detail, truncated to 2000 chars. No throwing for expected misconfiguration, per MOD.md semantics.
Happy to adjust the shape if you'd prefer the provider ordered differently or the You.com-specific args trimmed.
Tracking: youdotcom-oss/integration-tracking#358