Run when the tool starts running.
on_tool_start(
self,
serialized: dict[str, Any],
input_str: str,
*,
run_id: UUID,
parent_run_id: UUID | None = None,
tags: list[str] | None = None,
metadata: dict[str, Any] | None = None,
inputs: dict[str, Any] | None = None,
**kwargs: Any = {}
) -> None| Name | Type | Description |
|---|---|---|
serialized* | dict[str, Any] | The serialized tool. |
input_str* | str | The input string. |
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. |
inputs | dict[str, Any] | None | Default: NoneThe inputs. |
**kwargs | Any | Default: {}Additional keyword arguments. |