in computer-use-demo/computer_use_demo/tools/base.py [0:0]
def __bool__(self): return any(getattr(self, field.name) for field in fields(self))