SpecStream for Vercel
SpecStream is the live web data engine for teams and agents. @specstream/ai-sdk gives generateText, streamText, and ToolLoopAgent live web records in TypeScript.
What you get
- Fits a function's time limit
- With waitSeconds under your function's timeout, a run still going returns its listId and the agent reads the rest with specstream_get_list_results.
- Two inputs for the model
- The zod schemas give the model request and maxResults to fill in and keep maxPriceUsd in your TypeScript.
- SpecStreamClient without a model
- A route handler can call findList on the exported SpecStreamClient and render each row.
Where it works
Set it up
- Run npm install @specstream/ai-sdk ai zod on Node 18 or later, with AI SDK 6 or 7.
- Add SPECSTREAM_API_KEY to your project's environment variables, with a key from Agents & API in SpecStream.
- Pass specstreamTools({ maxPriceUsd: 5 }) as tools to generateText, streamText, or a ToolLoopAgent.
The full setup guide has every step, with what to do if something doesn’t arrive.
Live web data, in Vercel.
Ask in your own words for companies, places, people, filings or anything else the web lists.