Skip to the page

SpecStream for LlamaIndex

SpecStream is the live web data engine for teams and agents. llama-index-tools-specstream gives a FunctionAgent live web data through a tool spec. SpecStreamRetriever hands a query engine the same records as nodes.

What you get

Nodes with clean metadata
Each match becomes a TextNode that shows the model its source_url and keeps list IDs out of the prompt and your embeddings.
Settings on the spec
The model fills in a request and a row count while max_price_usd, wait_seconds, and locale stay on SpecStreamToolSpec.
The full server via McpToolSpec
McpToolSpec loads the rest of SpecStream into the agent, including schedules that rerun a request anywhere from hourly to yearly.

Set it up

  1. Run pip install -U llama-index-tools-specstream on Python 3.10 or later, with llama-index-core 0.13 or 0.14.
  2. Create a key under Agents & API in SpecStream and set it as SPECSTREAM_API_KEY, or pass it as api_key.
  3. Give SpecStreamToolSpec(max_price_usd=5).to_tool_list() to a FunctionAgent, or call SpecStreamRetriever.retrieve with a request.

The full setup guide has every step, with what to do if something doesn’t arrive.

Live web data, in LlamaIndex.

Ask in your own words for companies, places, people, filings or anything else the web lists.