llama-stack icon indicating copy to clipboard operation
llama-stack copied to clipboard

[Discussion] Add a SpecStream web search provider (remote::specstream-search)

Open Specstreamai opened this issue 4 weeks ago • 0 comments

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-search with a Bearer key, $5 per 1,000 searches. Every result carries its source URL.
  • httpx only, no new dependency, mirroring nimble_search and tavily_search: persistent AsyncClient created in initialize() and closed in shutdown(), config inheriting BaseToolRuntimeConfig, and the key read from config or from the X-OGX-Provider-Data header through NeedsRequestProviderData.
  • Config kept small for v1: api_key as SecretStr and max_results, with a description on every Field so ./scripts/provider_codegen.py generates 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

  1. In tree or external?
  2. Is there a page extraction slot to target?
  3. Anything you want handled differently from #6636?

Once this is approved I will open the PR with tests.

Specstreamai avatar Nov 08 '26 09:11 Specstreamai