(error: Error, runId: string)
| 336 | |
| 337 | // Tool Error Handler |
| 338 | handleToolError(error: Error, runId: string) { |
| 339 | const span = spanMap.get(runId); |
| 340 | if (span?.isRecording()) { |
| 341 | span.setStatus({ code: SPAN_STATUS_ERROR, message: 'internal_error' }); |
| 342 | exitSpan(runId); |
| 343 | } |
| 344 | |
| 345 | captureException(error, { |
| 346 | mechanism: { |
| 347 | handled: false, |
| 348 | type: `${LANGCHAIN_ORIGIN}.tool_error_handler`, |
| 349 | }, |
| 350 | }); |
| 351 | }, |
| 352 | |
| 353 | // LangChain BaseCallbackHandler required methods |
| 354 | copy() { |
nothing calls this directly
no test coverage detected