_update_run_single() — langchain Function Reference
Architecture documentation for the _update_run_single() function in langchain.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD bce3427a_d6ea_f317_a362_d28206fa1696["_update_run_single()"] 178590bb_85ff_b79e_979a_46e5c3c5389f["LangChainTracer"] bce3427a_d6ea_f317_a362_d28206fa1696 -->|defined in| 178590bb_85ff_b79e_979a_46e5c3c5389f 0a3df31a_88bd_f701_6d60_8d6d287acc08["_on_llm_end()"] 0a3df31a_88bd_f701_6d60_8d6d287acc08 -->|calls| bce3427a_d6ea_f317_a362_d28206fa1696 29ff7574_4116_4e44_4452_26bbc208e359["_on_llm_error()"] 29ff7574_4116_4e44_4452_26bbc208e359 -->|calls| bce3427a_d6ea_f317_a362_d28206fa1696 6fa418f3_cafe_a81c_2caa_db95b1a520ff["_on_chain_end()"] 6fa418f3_cafe_a81c_2caa_db95b1a520ff -->|calls| bce3427a_d6ea_f317_a362_d28206fa1696 bd21d245_281c_d787_ba7a_a842618eec60["_on_chain_error()"] bd21d245_281c_d787_ba7a_a842618eec60 -->|calls| bce3427a_d6ea_f317_a362_d28206fa1696 4c0c2a43_46e9_72cd_1ff6_fdf9f3a5b7d1["_on_tool_end()"] 4c0c2a43_46e9_72cd_1ff6_fdf9f3a5b7d1 -->|calls| bce3427a_d6ea_f317_a362_d28206fa1696 dd6d0605_995c_3548_8629_97f699e21c8a["_on_tool_error()"] dd6d0605_995c_3548_8629_97f699e21c8a -->|calls| bce3427a_d6ea_f317_a362_d28206fa1696 585939a0_33b2_0f83_0742_7928391194e3["_on_retriever_end()"] 585939a0_33b2_0f83_0742_7928391194e3 -->|calls| bce3427a_d6ea_f317_a362_d28206fa1696 963cdaaa_092a_d76d_0e6f_beb9a8744553["_on_retriever_error()"] 963cdaaa_092a_d76d_0e6f_beb9a8744553 -->|calls| bce3427a_d6ea_f317_a362_d28206fa1696 2c07d5a6_0b43_cd17_8e75_6b8d83c1e656["log_error_once()"] bce3427a_d6ea_f317_a362_d28206fa1696 -->|calls| 2c07d5a6_0b43_cd17_8e75_6b8d83c1e656 style bce3427a_d6ea_f317_a362_d28206fa1696 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/tracers/langchain.py lines 258–267
def _update_run_single(run: Run) -> None:
"""Update a run."""
if run.extra.get("__disabled"):
return
try:
run.patch(exclude_inputs=run.extra.get("inputs_is_truthy", False))
except Exception as e:
# Errors are swallowed by the thread executor so we need to log them here
log_error_once("patch", e)
raise
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does _update_run_single() do?
_update_run_single() is a function in the langchain codebase, defined in libs/core/langchain_core/tracers/langchain.py.
Where is _update_run_single() defined?
_update_run_single() is defined in libs/core/langchain_core/tracers/langchain.py at line 258.
What does _update_run_single() call?
_update_run_single() calls 1 function(s): log_error_once.
What calls _update_run_single()?
_update_run_single() is called by 8 function(s): _on_chain_end, _on_chain_error, _on_llm_end, _on_llm_error, _on_retriever_end, _on_retriever_error, _on_tool_end, _on_tool_error.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free