TerminationAndHumanReplyNoInputEvent(*, uuid=None, no_human_input_msg, sender=None, recipient)
Bases: BaseEvent
When the human-in-the-loop is prompted but provides no input.
Source code in autogen/events/agent_events.py
| def __init__(
self,
*,
uuid: Optional[UUID] = None,
no_human_input_msg: str,
sender: Optional[Union["Agent", str]] = None,
recipient: Union["Agent", str],
):
sender = sender or "No sender"
super().__init__(
uuid=uuid,
no_human_input_msg=no_human_input_msg,
sender=sender.name if hasattr(sender, "name") else sender,
recipient=recipient.name if hasattr(recipient, "name") else recipient,
)
|
Source code in autogen/events/agent_events.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)
|