Base callback manager.
BaseCallbackManager(
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
)| Name | Type | Description |
|---|---|---|
handlers* | list[BaseCallbackHandler] | The handlers. |
inheritable_handlers | list[BaseCallbackHandler] | None | Default: NoneThe inheritable handlers. |
parent_run_id | UUID | None | Default: NoneThe parent run ID. |
tags | list[str] | None | Default: NoneThe tags. |
inheritable_tags | list[str] | None | Default: NoneThe inheritable tags. |
metadata | dict[str, Any] | None | Default: NoneThe metadata. |
inheritable_metadata | dict[str, Any] | None | Default: NoneThe inheritable metadata. |
Return a copy of the callback manager.
Merge the callback manager with another callback manager.
May be overwritten in subclasses.
Primarily used internally within merge_configs.
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.