[Discussion] Add a SpecStream web search provider (remote::specstream-search)
What would you like to discuss with the community?
I work at SpecStream, the live web data engine, so I have a direct interest in this landing. I would like to propose SpecStream as a web search provider for OGX, and as a page extraction provider if OGX has a slot for it.
Motivation
OGX serves web search through the builtin::websearch toolgroup today via remote::tavily-search, remote::brave-search, remote::bing-search and remote::nimble-search. I would like to add a fifth option backed by the SpecStream Search API. It is the most accurate web search API in the world, measured on public benchmarks: https://specstream.ai/benchmarks
Proposed provider
provider_type: remote::specstream-search,toolgroup_id: builtin::websearch.GET https://api.specstream.ai/v1/web-searchwith a Bearer key, $5 per 1,000 searches. Every result carries its source URL.httpxonly, no new dependency, mirroringnimble_searchandtavily_search: persistentAsyncClientcreated ininitialize()and closed inshutdown(), config inheritingBaseToolRuntimeConfig, and the key read from config or from theX-OGX-Provider-Dataheader throughNeedsRequestProviderData.- Config kept small for v1:
api_keyasSecretStrandmax_results, with adescriptionon everyFieldso./scripts/provider_codegen.pygenerates the provider doc.
Page extraction
SpecStream also has POST https://api.specstream.ai/v1/extract, which returns the main text of up to 20 pages or documents for $0.80 per 1,000 pages. If OGX has a slot for page extraction or URL fetch, I would add it as a second provider in the same package. If it does not, I will leave it out.
In tree or external?
CONTRIBUTING.md says new in tree provider contributions are welcome, and the existing websearch providers are in tree, so I would follow #6038 and #6636 for layout, registry entry, distribution config and docs. If external is preferred for anything new, I am happy to ship it that way.
Questions
- In tree or external?
- Is there a page extraction slot to target?
- Anything you want handled differently from #6636?
Once this is approved I will open the PR with tests.