Skip to content

feat(gateway): add opt-in Keenable web search - #327

Open
KGKallasmaa wants to merge 1 commit into
NxcoreAI:devfrom
KGKallasmaa:keenable-web-search
Open

KGKallasmaa wants to merge 1 commit into
NxcoreAI:devfrom
KGKallasmaa:keenable-web-search

Conversation

@KGKallasmaa

Copy link
Copy Markdown

With NXCORE_WEB_SEARCH_PROVIDER=keenable, the built-in web_search tool calls the Keenable Search API directly and returns titles, links and snippets for the agent to cite. DashScope stays the default and nothing changes unless the env var is set.

  • works without an account (public endpoint, sends X-Keenable-Title: EverRoom); KEENABLE_API_KEY switches to the keyed endpoint
  • same tool name and the same external call budget (WEB_SEARCH) as the existing tool, so doc-writer / slides-planner allowlists keep working
  • NXCORE_WEB_SEARCH=false still turns it off
  • new keenable-web-search-tools.ts, no new dependency; short section in the gateway README and .env.example

Tests: tests/keenable-web-search.test.ts (mocked fetch) plus a config case in tests/config.test.ts; vitest and tsc --noEmit pass. Also ran a live keyless search through the new function.

Disclosure: I work with Keenable. Happy to change anything you'd like done differently

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant