mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-01 11:56:24 +02:00
refactor: rename is_recipient
This commit is contained in:
parent
93ebe8c103
commit
af4c87e123
8 changed files with 19 additions and 19 deletions
|
|
@ -59,7 +59,7 @@ class WriteCode(Action):
|
|||
return
|
||||
|
||||
message_filter = {WriteDesign}
|
||||
design = [i for i in context if i.is_recipient(message_filter)][0]
|
||||
design = [i for i in context if i.contain_any(message_filter)][0]
|
||||
|
||||
ws_name = CodeParser.parse_str(block="Python package name", text=design.content)
|
||||
ws_path = WORKSPACE_ROOT / ws_name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue