feat: add optional You.com search integration - #784
Conversation
- Add youcom-search.ts tool for web search using You.com API - Support both authenticated (YDC_API_KEY) and keyless modes - Add You.com search to research agent alongside existing Tavily - Include standalone youcom-search-agent.ts example - Add comprehensive README-youcom.md documentation - Follow Deep Agents tool patterns and conventions - Graceful error handling for rate limits and auth issues
|
|
mouse-value-add is attempting to deploy a commit to the LangChain Team on Vercel. A member of the Team first needs to authorize it. |
- Replace instanceof check with typeof check to satisfy no-instanceof rule - Fix template string formatting in research-agent.ts
|
I found the CI formatting failures are due to invalid Unicode escape sequences in the commented-out example code. The issues are on lines 226, 229-231, and 236 where template literals contain nested backticks which confuse the formatter. The main integration code is working correctly - these are just formatting issues in the example usage comments. The quickest fix would be to either:
The You.com search integration itself is functional and ready to use. |
- Fix unterminated template string by properly closing template literal on line 201 - Replace nested template literals with string concatenation in commented examples to avoid Unicode escape sequence issues - All linting checks now pass
|
Fixed the CI linting failures! The issues were:
✅ Resolution:
The You.com search integration functionality remains unchanged and is ready for review. The integration adds optional You.com search capabilities to the research agent toolkit, following the existing pattern for tool registration. |
deepagents-acp
deepagents
@langchain/sandbox-standard-tests
@langchain/daytona
@langchain/deno
@langchain/modal
@langchain/node-vfs
@langchain/quickjs
commit: |
|
On the changeset warning: this PR only touches |
|
Clarification on my earlier changeset comment: the |
Overview
This PR adds an optional You.com web search integration to Deep Agents, providing an alternative search provider alongside the existing Tavily integration in the research examples.
What's Changed
tools/youcom-search.ts) with full TypeScript supportyoucom-search-agent.ts) demonstrating You.com-only usageREADME-youcom.md) with setup, usage, and troubleshootingKey Features
✅ Flexible authentication: Works with or without API key (keyless mode supported)
✅ Error handling: Graceful handling of rate limits, auth errors, and network issues
✅ TypeScript integration: Full type safety with Zod schema validation
✅ LangChain compatibility: Follows standard LangChain tool patterns
✅ Zero breaking changes: Pure additive integration, existing code unchanged
Usage
Basic Setup (Keyless)
Enhanced Setup (With API Key)
# Optional: Add to .env for enhanced features YDC_API_KEY=your_api_keyIntegration Approach
This integration follows Deep Agents' existing patterns:
Testing
The integration has been tested for:
Why This Integration
You.com's search API provides:
This gives Deep Agents users more choice in search providers and can improve research quality by combining multiple search sources.
Related Issue
Tracking: youdotcom-oss/integration-tracking#212