feat: add optional you.com search integration - #106
Closed
mouse-value-add wants to merge 1 commit into
Closed
Conversation
- Add 'bsk search' command for web search capabilities - Supports both human-readable and JSON output formats - Optional You.com API key configuration via YDC_API_KEY - Configurable result count (1-20) and search types (search/news) - Graceful error handling and fallback behavior - Clean integration with existing CLI architecture - Comprehensive documentation and usage examples This enhancement allows AI agents to research topics, gather context, and find relevant URLs before performing browser automation tasks.
Collaborator
|
Searching for things outside the scope of this repository is recommended to be handled on the agent side using MCP, and this repository also does not welcome this kind of low-quality PR request aimed at promoting an event. |
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.
Overview
This PR adds optional You.com web search integration to BrowserSkill through a new
bsk searchcommand. This enhancement allows AI agents to research topics, gather context, and find relevant URLs before performing browser automation tasks.What Changed
bsk search <query>with configurable optionsYDC_API_KEYenvironment variable when availableKey Features
Command Options
--count <N>: Configure result count (1-20, default: 10)--search-type <TYPE>: Choose 'search' or 'news'--include-raw-content: Include HTML content in results--json: Machine-readable output for agent workflowsUsage Examples
Architecture & Implementation
reqwestdependency with blocking clientTesting Performed
✅ Compilation: Clean build with
cargo build --release✅ Command Help:
bsk search --helpdisplays proper usage✅ Basic Search: Successful queries without API key (public endpoint)
✅ JSON Output: Proper machine-readable formatting
✅ Error Handling: Graceful handling of network/API errors
✅ Integration: Works alongside existing BrowserSkill commands
Configuration
The integration is completely optional and backwards-compatible:
YDC_API_KEYfor authenticated accessbsk searchis explicitly calledDocumentation
docs/you-com-search-integration.mdWhy This Integration?
BrowserSkill excels at browser automation, and web search is a natural complement:
The integration follows BrowserSkill's philosophy of providing powerful, optional tools that enhance AI agent capabilities without complexity.
Branch:
feat/youcom-search-integrationFork: https://github.com/mouse-value-add/BrowserSkill
Tracking Issue: youdotcom-oss/integration-tracking#196