Skip to content

Condition

autogen.beta.events.conditions.Condition #

Bases: ABC

and_ #

and_(other)
Source code in autogen/beta/events/conditions.py
def and_(self, other: Any) -> "AndCondition":
    if not isinstance(other, Condition):
        other = TypeCondition(other)
    return AndCondition(self, other)

or_ #

or_(other)
Source code in autogen/beta/events/conditions.py
def or_(self, other: Any) -> "OrCondition":
    if not isinstance(other, Condition):
        other = TypeCondition(other)
    return OrCondition(self, other)

not_ #

not_()
Source code in autogen/beta/events/conditions.py
def not_(self) -> "NotCondition":
    return NotCondition(self)