on_tool_error(
self,
error: BaseException,
*,
run_id: UUID,
parent_run_id: Optional[| Name | Type | Description |
|---|---|---|
error* | BaseException | The exception that was raised during tool execution. |
run_id* | UUID | Unique identifier for this tool run. |
parent_run_id | Optional[UUID] | Default: NoneRun ID of the parent chain/agent. |
**kwargs | Any | Default: {} |
Mark a tool span as errored and close it.
Additional LangChain callback keyword arguments.