Add Webz.io News Search as a search-engine provider
Feature description
Add Webz.io News Search as an optional search-engine provider in MetaGPT.
MetaGPT already defines providers through SearchEngineType and dispatches them in the search engine tool. Webz.io would add a news-specific option for current-events research, company research, risk analysis, media monitoring, and other agents that need structured news results rather than general web pages.
The API accepts natural-language queries, searches recent global news, and supports filters including publication date, country, language, category, and sentiment. Results include article and source metadata plus relevant text excerpts.
API documentation: https://docs.webz.io/docs/webz/news-search-api
Your Feature
A possible implementation:
- Add a
WEBZ_NEWSvalue toSearchEngineType. - Add
WEBZ_API_KEYto search configuration. - Implement the provider in
metagpt/tools/search_engine.py. - Map titles, URLs, publication dates, source metadata, and excerpts to MetaGPT's standard search result.
- Add documentation, tests, and a small usage example.
This follows the existing provider model used for SerpAPI, Serper, and direct Google search.
Disclosure: I am with Webz.io and would be happy to help with API details or implementation guidance.
Source: FoundationAgents/MetaGPT