Async callback manager for the chain group.
AsyncCallbackManagerForChainGroup(
self,
handlers: list[BaseCallbackHandler],
inheritable_handlers: list[BaseCallbackHandler] | None = None,
parent_run_id: UUID | None = None,
*,
parent_run_manager: AsyncCallbackManagerForChainRun,
**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* | AsyncCallbackManagerForChainRun | 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 | AsyncCallbackManagerForChainRun |
Return a copy the async callback manager.
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.
Start a trace for a (non-chat model) LLM run.
Start a trace for a chat model run.
Start a trace for a chain run.
Start a trace for a tool run.
Generate a custom astream event.
Run when Retriever starts running.
Configure the callback manager.
The ID of the parent run.
Optional list of tags associated with the retriever.
Optional metadata associated with the retriever.
Return whether the handler is async.
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.