mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-21 14:05:17 +02:00
add args for ask_human and reply_to_human
This commit is contained in:
parent
3590cd77b6
commit
2479f75bcb
2 changed files with 5 additions and 4 deletions
|
|
@ -14,6 +14,7 @@ from metagpt.roles import (
|
|||
ProductManager,
|
||||
ProjectManager,
|
||||
QaEngineer,
|
||||
Role,
|
||||
)
|
||||
from metagpt.schema import Message
|
||||
from metagpt.utils.common import any_to_str, any_to_str_set
|
||||
|
|
@ -58,11 +59,11 @@ class MGXEnv(Environment):
|
|||
|
||||
return True
|
||||
|
||||
async def ask_human(self, question: str) -> str:
|
||||
async def ask_human(self, question: str, sent_from: Role = None) -> str:
|
||||
# NOTE: Can be overwritten in remote setting
|
||||
return get_human_input(question)
|
||||
|
||||
async def reply_to_human(self, content: str) -> str:
|
||||
async def reply_to_human(self, content: str, sent_from: Role = None) -> str:
|
||||
# NOTE: Can be overwritten in remote setting
|
||||
return content
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue