Skip to content

[Integration] agents-flex/agents-flex — You.com SearchProvider for the agents-flex-websearch module #265

Description

@mouse-value-add

Source repo

https://github.com/agents-flex/agents-flex

Why selected

Candidate evaluation summary

Candidate Stars Verdict
agents-flex/agents-flex 1049 SELECTED — provider SPI, active, proven merge pattern
lessweb/deepcode-cli 2231 Viable runner-up (TS coding harness, MCP config docs) but above the preferred band and docs-only surface
chenxin-yan/crust 403 Skill generation framework; weak natural web-search fit

Integration type

Provider adapter: YouComSearchProvider implementing com.agentsflex.websearch.SearchProvider, following the existing Tavily/Brave/Firecrawl provider pattern (OkHttp + FastJSON2, no new dependencies).

Distribution surface leveraged

Existing SearchProvider SPI in agents-flex-websearch (provider abstraction).

API details (verified via You.com docs)

  • Endpoint: POST https://ydc-index.io/v1/search
  • Auth: X-API-Key header (YDC_API_KEY)
  • Request: {"query", "count", "include_domains", "exclude_domains"}
  • Response: results.web[] with title, description, url

Setup / env vars

export YDC_API_KEY="your-api-key"   # https://you.com/platform/api-keys
SearchProvider provider = new YouComSearchProvider(System.getenv("YDC_API_KEY"));
WebSearchTool searchTool = new WebSearchTool(provider);

Usage example

String results = searchTool.webSearch("Java 17 new features", null, null);

Validation performed

  • mvn -pl agents-flex-websearch -am compile -DskipTests — pass
  • mvn -pl agents-flex-websearch test — 6/6 pass (3 new + 3 existing)
  • Default behavior unchanged: provider is opt-in, only instantiated explicitly

Branch / PR

Status

PR open, awaiting maintainer review.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions