langchain/callbacks/base.py/BaseCallbackManager/add_handler
class BaseCallbackManager:    def add_handler(self, handler: BaseCallbackHandler, inherit: bool = True) -> None:
        """Add a handler to the callback manager."""
        self.handlers.append(handler)
        if inherit:
            self.inheritable_handlers.append(handler)