Callback manager for the chain group.
CallbackManagerForChainGroup(
self,
handlers: list[BaseCallbackHandler],
inheritable_handlers: list[BaseCallbackHandler] | None = None,
parent_run_id: UUID | None = None,
*,
parent_run_manager: CallbackManagerForChainRun,
**kwargs: Any = {}
)| Name | Type | Description |
|---|---|---|
handlers* | list[BaseCallbackHandler] | The list of handlers. |
inheritable_handlers | list[BaseCallbackHandler] | None | Default: NoneThe list of inheritable handlers. |
parent_run_id | UUID | None | Default: NoneThe ID of the parent run. |
parent_run_manager* | CallbackManagerForChainRun | The parent run manager. |
**kwargs | Any | Default: {}Additional keyword arguments. |
| Name | Type |
|---|---|
| handlers | list[BaseCallbackHandler] |
| inheritable_handlers | list[BaseCallbackHandler] | None |
| parent_run_id | UUID | None |
| parent_run_manager | CallbackManagerForChainRun |
Merge the group callback manager with another callback manager.
Overwrites the merge method in the base class to ensure that the parent run
manager is preserved. Keeps the parent_run_manager from the current object.
Run when traced chain group ends.
Run when chain errors.
Run when LLM starts running.
Run when chat model starts running.
Run when chain starts running.
Run when tool starts running.
Run when the retriever starts running.
Dispatch an adhoc event to the handlers (async version).
Configure the 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.