> SpecStream is the live web data engine for teams and agents. This is the Markdown copy of https://specstream.ai/integrations/dspy. Every page, with what SpecStream does and costs: https://specstream.ai/llms.txt

# SpecStream for DSPy

SpecStream is the live web data engine for teams and agents. One search function on SpecStream's Search API gives a DSPy RAG module passages from the live web, and the same function works as a dspy.ReAct tool.

[Read the guide](https://specstream.ai/docs/integrations/dspy.md)

## What you get

Passages with their URL

Each passage carries the page's title and URL, then the text of the page closest to the query.

Search and read in ReAct

A second function reads any URL through the Extract API, as Markdown, PDFs and Word files included.

Every tool over MCP

dspy.Tool.from\_mcp\_tool turns SpecStream's MCP tools into DSPy tools, Deep Search lists included.

Status

Live

Category

[Agent frameworks & builders](https://specstream.ai/integrations.md#frameworks)

Built by

SpecStream

You need

Python 3.10+, DSPy 3.x, and a SpecStream API key.

Pricing

[You pay for the matches](https://specstream.ai/pricing.md)

Setup guide

[Read the guide](https://specstream.ai/docs/integrations/dspy.md)

Help

[Talk to a human](https://specstream.ai/talk-to-a-human.md)

## Set it up

1.  Run pip install -U dspy requests and export SPECSTREAM\_API\_KEY with a key from Agents & API.
2.  Add a search function that calls GET /v1/web-search with passages=true and returns dspy.Prediction(passages=...).
3.  Call it from your module's forward, or pass it to dspy.ReAct as a tool.

[The full setup guide](https://specstream.ai/docs/integrations/dspy.md) has every step, with what to do if something doesn’t arrive.

## Also in Agent frameworks & builders

The same live web data, in the other tools of this kind.

-   [OpenAI API](https://specstream.ai/integrations/openai.md)
-   [OpenAI Agents SDK](https://specstream.ai/integrations/openai-agents-sdk.md)
-   [LangChain](https://specstream.ai/integrations/langchain.md)
-   [LlamaIndex](https://specstream.ai/integrations/llamaindex.md)
-   [CrewAI](https://specstream.ai/integrations/crewai.md)
-   [Vercel](https://specstream.ai/integrations/vercel.md)
-   [Haystack](https://specstream.ai/integrations/haystack.md)
-   [See all](https://specstream.ai/integrations.md#frameworks)

## Live web data, in DSPy.

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

[Read the guide](https://specstream.ai/docs/integrations/dspy.md)[Talk to a human](https://specstream.ai/talk-to-a-human.md)
