_get_tool_run_info_with_inputs() — langchain Function Reference
Architecture documentation for the _get_tool_run_info_with_inputs() function in event_stream.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD f3f30716_b889_9f3d_db23_c53fb64b7cf1["_get_tool_run_info_with_inputs()"] 33d093c4_1ed0_fc6a_17c6_762d4c5cfa04["_AstreamEventsCallbackHandler"] f3f30716_b889_9f3d_db23_c53fb64b7cf1 -->|defined in| 33d093c4_1ed0_fc6a_17c6_762d4c5cfa04 cbfb1494_a541_4083_b9d5_c5f737190b70["on_tool_error()"] cbfb1494_a541_4083_b9d5_c5f737190b70 -->|calls| f3f30716_b889_9f3d_db23_c53fb64b7cf1 3431946e_3bda_d7f5_8ceb_4e455bf4d03d["on_tool_end()"] 3431946e_3bda_d7f5_8ceb_4e455bf4d03d -->|calls| f3f30716_b889_9f3d_db23_c53fb64b7cf1 style f3f30716_b889_9f3d_db23_c53fb64b7cf1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/tracers/event_stream.py lines 632–652
def _get_tool_run_info_with_inputs(self, run_id: UUID) -> tuple[RunInfo, Any]:
"""Get run info for a tool and extract inputs, with validation.
Args:
run_id: The run ID of the tool.
Returns:
A tuple of `(run_info, inputs)`.
Raises:
AssertionError: If the run ID is a tool call and does not have inputs.
"""
run_info = self.run_map.pop(run_id)
if "inputs" not in run_info:
msg = (
f"Run ID {run_id} is a tool call and is expected to have "
f"inputs associated with it."
)
raise AssertionError(msg)
inputs = run_info["inputs"]
return run_info, inputs
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does _get_tool_run_info_with_inputs() do?
_get_tool_run_info_with_inputs() is a function in the langchain codebase, defined in libs/core/langchain_core/tracers/event_stream.py.
Where is _get_tool_run_info_with_inputs() defined?
_get_tool_run_info_with_inputs() is defined in libs/core/langchain_core/tracers/event_stream.py at line 632.
What calls _get_tool_run_info_with_inputs()?
_get_tool_run_info_with_inputs() is called by 2 function(s): 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