Skip to the page

SpecStream for MetaGPT

SpecStream is the live web data engine for teams and agents. MetaGPT's custom search engine takes one async function. Give it SpecStream's, and the Researcher and Searcher roles search the live web through the Search API.

What you get

Research reports from live search
The Researcher writes its search questions, searches each through SpecStream, reads the top pages and writes a Markdown report.
The shape MetaGPT expects
The function returns title, link and snippet for each result, or one string, as MetaGPT's run_func asks.
No code with the Bing engine
Set bing_url in the search block of config2.yaml to SpecStream's Bing address, and the Bing engine searches through SpecStream.

Set it up

  1. Create a SpecStream API key under Agents & API and set it as SPECSTREAM_API_KEY.
  2. Copy the specstream_search function, which calls POST https://api.specstream.ai/v1/web-search.
  3. Set config.search.api_type to SearchEngineType.CUSTOM_ENGINE and config.search.search_func to the function, then run the Researcher.

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

Live web data, in MetaGPT.

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