mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-11 15:15:18 +02:00
fixbug: type error
This commit is contained in:
parent
ada3c1554c
commit
4455b298fc
1 changed files with 1 additions and 2 deletions
|
|
@ -91,8 +91,7 @@ You should follow the following Standard Operating Procedure:
|
|||
|
||||
class DetectIntent(Action):
|
||||
async def run(self, with_message: Message, **kwargs) -> Tuple[str, str]:
|
||||
ref_content = with_message.content.replace("\n", "\n> ")
|
||||
user_requirement = f"> {with_message.role}: {ref_content}"
|
||||
user_requirement = with_message.content
|
||||
intentions = "\n".join([f"{si.type_name}: {si.value.description}" for si in SOPItem])
|
||||
prompt = DETECT_PROMPT.format(user_requirement=user_requirement, intentions=intentions)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue