Run when a chain starts running.
on_chain_start(
self,
serialized: dict[str, Any],
inputs: dict[str, Any],
*,
run_id: UUID,
parent_run_id: UUID | None = None,
tags: list[str] | None = None,
metadata: dict[str, Any] | None = None,
**kwargs: Any = {}
) -> None| Name | Type | Description |
|---|---|---|
serialized* | dict[str, Any] | The serialized chain. |
inputs* | dict[str, Any] | The inputs. |
run_id* | UUID | The ID of the current run. |
parent_run_id | UUID | None | Default: NoneThe ID of the parent run. |
tags | list[str] | None | Default: NoneThe tags. |
metadata | dict[str, Any] | None | Default: NoneThe metadata. |
**kwargs | Any | Default: {}Additional keyword arguments. |