mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-15 11:02:36 +02:00
Clean up existing unused code according to flake8
This commit is contained in:
parent
0722257cd8
commit
d74215c502
68 changed files with 57 additions and 161 deletions
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
import asyncio
|
||||
|
||||
from metagpt.config import Config
|
||||
from metagpt.roles import Searcher
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,17 +1,16 @@
|
|||
import asyncio
|
||||
|
||||
from metagpt.config import Config
|
||||
from metagpt.roles import Searcher
|
||||
from metagpt.tools import SearchEngineType
|
||||
|
||||
|
||||
async def main():
|
||||
# Serper API
|
||||
await Searcher(engine = SearchEngineType.SERPER_GOOGLE).run("What are some good sun protection products?")
|
||||
await Searcher(engine=SearchEngineType.SERPER_GOOGLE).run("What are some good sun protection products?")
|
||||
# Serper API
|
||||
#await Searcher(engine = SearchEngineType.SERPAPI_GOOGLE).run("What are the best ski brands for skiers?")
|
||||
# await Searcher(engine=SearchEngineType.SERPAPI_GOOGLE).run("What are the best ski brands for skiers?")
|
||||
# Google API
|
||||
#await Searcher(engine = SearchEngineType.DIRECT_GOOGLE).run("What are the most interesting human facts?")
|
||||
# await Searcher(engine=SearchEngineType.DIRECT_GOOGLE).run("What are the most interesting human facts?")
|
||||
|
||||
if __name__ == '__main__':
|
||||
asyncio.run(main())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue