Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

集成DesignReview时报错 #1639

Open
deger2012 opened this issue Dec 14, 2024 · 4 comments
Open

集成DesignReview时报错 #1639

deger2012 opened this issue Dec 14, 2024 · 4 comments

Comments

@deger2012
Copy link

Bug description
我的程序在集成DesignReview时,报错如下:TypeError: DesignReview.run() missing 1 required positional argument: 'api_design',查了下是 role.py中的代码 async def _act(self) -> Message:
logger.info(f"{self._setting}: to do {self.rc.todo}({self.rc.todo.name})")
response = await self.rc.todo.run(self.rc.history)只传了一下参数,但DesignReview.run中有两个参数导致的
具体报错信息及代码位置截图显示

Bug solved method

Environment information

  • LLM type and model name:
  • System version: windows 11
  • Python version: python 3.11
  • MetaGPT version or branch: master
  • packages version:
  • installation method:

Screenshots or logs

image
image

@deger2012
Copy link
Author

image

Copy link

This issue has no activity in the past 30 days. Please comment on the issue if you have anything to add.

@iorisa
Copy link
Collaborator

iorisa commented Jan 16, 2025

你应该传prompt,而不是那两个参数。
整个MetaGPT框架,agent之间、action之间都是传message。

@github-actions github-actions bot removed the inactive label Jan 17, 2025
@deger2012
Copy link
Author

deger2012 commented Jan 21, 2025 via email

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants