mirror of https://github.com/microsoft/autogen.git
update input prompt message (#3149)
Co-authored-by: Chi Wang <wang.chi@microsoft.com> Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>
This commit is contained in:
parent
8ac9bba0be
commit
d3c73e9d36
|
@ -1723,7 +1723,7 @@ class ConversableAgent(LLMAgent):
|
||||||
sender_name = "the sender" if sender is None else sender.name
|
sender_name = "the sender" if sender is None else sender.name
|
||||||
if self.human_input_mode == "ALWAYS":
|
if self.human_input_mode == "ALWAYS":
|
||||||
reply = self.get_human_input(
|
reply = self.get_human_input(
|
||||||
f"Provide feedback to {sender_name}. Press enter to skip and use auto-reply, or type 'exit' to end the conversation: "
|
f"Replying as {self.name}. Provide feedback to {sender_name}. Press enter to skip and use auto-reply, or type 'exit' to end the conversation: "
|
||||||
)
|
)
|
||||||
no_human_input_msg = "NO HUMAN INPUT RECEIVED." if not reply else ""
|
no_human_input_msg = "NO HUMAN INPUT RECEIVED." if not reply else ""
|
||||||
# if the human input is empty, and the message is a termination message, then we will terminate the conversation
|
# if the human input is empty, and the message is a termination message, then we will terminate the conversation
|
||||||
|
@ -1836,7 +1836,7 @@ class ConversableAgent(LLMAgent):
|
||||||
sender_name = "the sender" if sender is None else sender.name
|
sender_name = "the sender" if sender is None else sender.name
|
||||||
if self.human_input_mode == "ALWAYS":
|
if self.human_input_mode == "ALWAYS":
|
||||||
reply = await self.a_get_human_input(
|
reply = await self.a_get_human_input(
|
||||||
f"Provide feedback to {sender_name}. Press enter to skip and use auto-reply, or type 'exit' to end the conversation: "
|
f"Replying as {self.name}. Provide feedback to {sender_name}. Press enter to skip and use auto-reply, or type 'exit' to end the conversation: "
|
||||||
)
|
)
|
||||||
no_human_input_msg = "NO HUMAN INPUT RECEIVED." if not reply else ""
|
no_human_input_msg = "NO HUMAN INPUT RECEIVED." if not reply else ""
|
||||||
# if the human input is empty, and the message is a termination message, then we will terminate the conversation
|
# if the human input is empty, and the message is a termination message, then we will terminate the conversation
|
||||||
|
|
Loading…
Reference in New Issue