Async callback manager that handles callbacks from LangChain.
AsyncCallbackManager(
self,
handlers: list[BaseCallbackHandler],
inheritable_handlers: list[BaseCallbackHandler] | None = None,
parent_run_id: UUID | None = None,
*,
tags: list[str] | None = None,
inheritable_tags: list[str] | None = None,
metadata: dict[str, Any] | None = None,
inheritable_metadata: dict[str, Any] | None = None
)Run when LLM starts running.
Async run when LLM starts running.
Async run when chain starts running.
Run when the tool starts running.
Dispatch an adhoc event to the handlers (async version).
This event should NOT be used in any internal LangChain code. The event is meant specifically for users of the library to dispatch custom events that are tailored to their application.
Run when the retriever starts running.
Configure the async callback manager.
Return a copy of the callback manager.
Merge the callback manager with another callback manager.
Add a handler to the callback manager.
Remove a handler from the callback manager.
Set handlers as the only handlers on the callback manager.
Set handler as the only handler on the callback manager.
Add tags to the callback manager.
Remove tags from the callback manager.
Add metadata to the callback manager.
Remove metadata from the callback manager.