feat: add optional You.com search integration - #580
Open
mouse-value-add wants to merge 1 commit into
Open
Conversation
- Add You.com as primary web search provider with Tavily fallback - Integrate with existing BYOK system for tenant-specific API keys - Support YDC_API_KEY environment variable for platform-wide config - Maintain backward compatibility - no changes to default behavior - Follow existing provider pattern in mcp_service.py - Add comprehensive documentation and environment examples - Include validation script to verify integration Setup: - Set YDC_API_KEY environment variable OR - Configure per-tenant via Settings > AI Intelligence (BYOK) - Falls back to Tavily if You.com unavailable Validation performed: - Syntax checks pass on all modified files - Integration follows existing Tavily pattern - BYOK provider properly configured - Documentation complete with setup/troubleshooting - Priority order: You.com > Tavily (tenant keys > env vars)
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.
Summary
Adds You.com as a primary web search provider for ATOM agents, with automatic fallback to Tavily. This integration follows the existing provider pattern and maintains full backward compatibility.
Why You.com for ATOM?
You.com provides superior search capabilities for AI agents:
Integration Details
Clean Architecture
mcp_service.pyConfiguration Options
Priority Order
Implementation
backend/integrations/mcp_service.py- Added You.com search with fallback logicbackend/api/byok_routes.py- Added You.com to BYOK provider listbackend/core/byok_endpoints.py- Added You.com to valid providers.env.examplefiles - Added YDC_API_KEY configuration examplesdocs/integrations/youcom-search.md- Comprehensive setup/troubleshooting guideValidation
✅ All syntax checks pass
✅ Follows existing Tavily pattern exactly
✅ BYOK provider properly configured
✅ Environment variables documented
✅ Comprehensive documentation included
✅ No breaking changes for existing users
Usage Example
Fallback Behavior
Testing
validate_youcom_integration.pyRelated Issue
Tracking issue: youdotcom-oss/integration-tracking#179
Happy to adjust the integration approach if you prefer a different abstraction or have specific requirements for the provider system!