Start a trace for a tool run.
on_tool_start(
self,
serialized: dict[str, Any],
input_str: str,
*,
run_id: UUID,
tags: list[str] | None = None,
parent_run_id: UUID | None = None,
metadata: dict[str, Any] | None = None,
name: str | None = None,
inputs: dict[str, Any] | None = None,
**kwargs: Any = {}
) -> Run| Name | Type | Description |
|---|---|---|
serialized* | dict[str, Any] | The serialized tool. |
input_str* | str | The input string. |
run_id* | UUID | The run ID. |
tags | list[str] | None | Default: NoneThe tags for the run. |
parent_run_id | UUID | None | Default: NoneThe parent run ID. |
metadata | dict[str, Any] | None | Default: NoneThe metadata for the run. |
name | str | None | Default: NoneThe name of the run. |
inputs | dict[str, Any] | None | Default: NoneThe inputs for the tool. |
**kwargs | Any | Default: {}Additional arguments. |