SpecStream for smolagents
SpecStream is the live web data engine for teams and agents. ApiWebSearchTool takes an endpoint. Give it SpecStream's Brave address and your smolagents agents search through SpecStream's Search API.
What you get
- One argument to change
- Set endpoint and api_key_name on ApiWebSearchTool. The tool's name, output and prompts stay the same.
- Brave's shape, as the tool reads it
- Results come back as web.results with title, url and description.
- Pages read for the agent
- A small tool sends URLs to the Extract API and gets each page's main text as Markdown.
Set it up
- Get a SpecStream API key on the Search API screen and set it as SPECSTREAM_API_KEY.
- Create ApiWebSearchTool with endpoint https://api.specstream.ai/res/v1/web/search and api_key_name SPECSTREAM_API_KEY.
- Add the tool to your CodeAgent or ToolCallingAgent and run it.
The full setup guide has every step, with what to do if something doesn’t arrive.
Live web data, in smolagents.
Ask in your own words for companies, places, people, filings or anything else the web lists.