Skip to content

TerminationAndHumanReplyMessage

autogen.messages.agent_messages.TerminationAndHumanReplyMessage #

TerminationAndHumanReplyMessage(*, uuid=None, no_human_input_msg, sender=None, recipient)

Bases: BaseMessage

Source code in autogen/messages/agent_messages.py
def __init__(
    self,
    *,
    uuid: Optional[UUID] = None,
    no_human_input_msg: str,
    sender: Optional["Agent"] = None,
    recipient: "Agent",
):
    super().__init__(
        uuid=uuid,
        no_human_input_msg=no_human_input_msg,
        sender_name=sender.name if sender else "No sender",
        recipient_name=recipient.name,
    )

uuid instance-attribute #

uuid

no_human_input_msg instance-attribute #

no_human_input_msg

sender_name instance-attribute #

sender_name

recipient_name instance-attribute #

recipient_name

print #

print(f=None)
Source code in autogen/messages/agent_messages.py
def print(self, f: Optional[Callable[..., Any]] = None) -> None:
    f = f or print

    f(colored(f"\n>>>>>>>> {self.no_human_input_msg}", "red"), flush=True)