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