mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-30 17:29:56 +00:00
cr
This commit is contained in:
parent
6fe6af7048
commit
7d0b1cafd7
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user