_errored_tool_run() — langchain Function Reference
Architecture documentation for the _errored_tool_run() function in core.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 948a1204_f1cc_b6b0_6d97_c9337dab7618["_errored_tool_run()"] 70348e44_de0f_ccb4_c06a_8453289ed93e["_TracerCore"] 948a1204_f1cc_b6b0_6d97_c9337dab7618 -->|defined in| 70348e44_de0f_ccb4_c06a_8453289ed93e 66392709_99c4_1a2e_dfac_aed34eebe5f5["_get_run()"] 948a1204_f1cc_b6b0_6d97_c9337dab7618 -->|calls| 66392709_99c4_1a2e_dfac_aed34eebe5f5 c29d131b_982f_a6b1_9b0a_0c44ecc968f4["_get_stacktrace()"] 948a1204_f1cc_b6b0_6d97_c9337dab7618 -->|calls| c29d131b_982f_a6b1_9b0a_0c44ecc968f4 style 948a1204_f1cc_b6b0_6d97_c9337dab7618 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/tracers/core.py lines 470–480
def _errored_tool_run(
self,
error: BaseException,
run_id: UUID,
) -> Run:
"""Update a tool run with error and end time."""
tool_run = self._get_run(run_id, run_type="tool")
tool_run.error = self._get_stacktrace(error)
tool_run.end_time = datetime.now(timezone.utc)
tool_run.events.append({"name": "error", "time": tool_run.end_time})
return tool_run
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does _errored_tool_run() do?
_errored_tool_run() is a function in the langchain codebase, defined in libs/core/langchain_core/tracers/core.py.
Where is _errored_tool_run() defined?
_errored_tool_run() is defined in libs/core/langchain_core/tracers/core.py at line 470.
What does _errored_tool_run() call?
_errored_tool_run() calls 2 function(s): _get_run, _get_stacktrace.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free