mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-27 09:46:24 +02:00
warning if using the Researcher role with an untested language
This commit is contained in:
parent
e43ae21d98
commit
f13d433f78
1 changed files with 2 additions and 0 deletions
|
|
@ -32,6 +32,8 @@ class Researcher(Role):
|
|||
super().__init__(name, profile, goal, constraints, **kwargs)
|
||||
self._init_actions([CollectLinks(name), WebBrowseAndSummarize(name), ConductResearch(name)])
|
||||
self.language = language
|
||||
if language not in ("en-us", "zh-cn"):
|
||||
logger.warning(f"The language `{language}` has not been tested, it may not work.")
|
||||
|
||||
async def _think(self) -> None:
|
||||
if self._rc.todo is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue