langchain/callbacks/base.py/BaseCallbackManager/set_handler
class BaseCallbackManager:    def set_handler(self, handler: BaseCallbackHandler, inherit: bool = True) -> None:
        """Set handler as the only handler on the callback manager."""
        self.set_handlers([handler], inherit=inherit)