This commit is contained in:
Harrison Chase 2023-01-03 14:00:44 -08:00
parent 6fe6af7048
commit 7d0b1cafd7

View File

@ -9,13 +9,12 @@ def get_callback_manager() -> BaseCallbackManager:
return SharedCallbackManager()
def set_default_callback_manager() -> None:
"""Set default callback manager."""
callback = get_callback_manager()
callback.add_handler(StdOutCallbackHandler())
def set_handler(handler: BaseCallbackHandler) -> None:
"""Set handler."""
callback = get_callback_manager()
callback.set_handler(handler)
def set_default_callback_manager() -> None:
"""Set default callback manager."""
set_handler(StdOutCallbackHandler())