MetaGPT icon indicating copy to clipboard operation
MetaGPT copied to clipboard

集成DesignReview时报错

Open deger2012 opened this issue 1 year ago • 5 comments

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 avatar Dec 14 '24 07:12 deger2012

image

deger2012 avatar Dec 14 '24 07:12 deger2012

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

github-actions[bot] avatar Jan 14 '25 00:01 github-actions[bot]

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

iorisa avatar Jan 16 '25 14:01 iorisa

嗯 好的 谢谢


发件人: Guess @.> 发送时间: 2025年1月16日 22:47 收件人: geekan/MetaGPT @.> 抄送: Luo Min @.>; Author @.> 主题: Re: [geekan/MetaGPT] 集成DesignReview时报错 (Issue #1639)

你应该传prompt,而不是那两个参数

― Reply to this email directly, view it on GitHubhttps://github.com/geekan/MetaGPT/issues/1639#issuecomment-2595924429, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AASE2CBMJT736EJ4NBQ2ZOT2K7A77AVCNFSM6AAAAABTTIV5ECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKOJVHEZDINBSHE. You are receiving this because you authored the thread.Message ID: @.***>

deger2012 avatar Jan 21 '25 07:01 deger2012

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

github-actions[bot] avatar Feb 21 '25 00:02 github-actions[bot]

This issue was closed due to 45 days of inactivity. If you feel this issue is still relevant, please reopen the issue to continue the discussion.

github-actions[bot] avatar Mar 07 '25 00:03 github-actions[bot]