wrap_tool_call() — langchain Function Reference
Architecture documentation for the wrap_tool_call() function in test_dynamic_tools.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 1ea5936a_6fbd_698f_ab12_c23421e6c22a["wrap_tool_call()"] 4e1e32a7_84a8_0e2b_9494_e371b02d0ac2["LoggingMiddleware"] 1ea5936a_6fbd_698f_ab12_c23421e6c22a -->|defined in| 4e1e32a7_84a8_0e2b_9494_e371b02d0ac2 e4cdc81b_493e_288d_8e27_3d1f6e4e457f["wrap_tool_call()"] e4cdc81b_493e_288d_8e27_3d1f6e4e457f -->|calls| 1ea5936a_6fbd_698f_ab12_c23421e6c22a f226e306_9a63_e254_49cc_cc9aa8840bf1["wrap_tool_call()"] f226e306_9a63_e254_49cc_cc9aa8840bf1 -->|calls| 1ea5936a_6fbd_698f_ab12_c23421e6c22a 455837cc_5fda_f424_2098_8408fe296ed5["wrap_tool_call()"] 455837cc_5fda_f424_2098_8408fe296ed5 -->|calls| 1ea5936a_6fbd_698f_ab12_c23421e6c22a d7b6b378_c955_4dca_181a_cbcac973f5d5["test_dynamic_tool_chained_middleware()"] d7b6b378_c955_4dca_181a_cbcac973f5d5 -->|calls| 1ea5936a_6fbd_698f_ab12_c23421e6c22a 455837cc_5fda_f424_2098_8408fe296ed5["wrap_tool_call()"] 1ea5936a_6fbd_698f_ab12_c23421e6c22a -->|calls| 455837cc_5fda_f424_2098_8408fe296ed5 style 1ea5936a_6fbd_698f_ab12_c23421e6c22a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_dynamic_tools.py lines 371–377
def wrap_tool_call(
self,
request: ToolCallRequest,
handler: Callable[[ToolCallRequest], ToolMessage | Command[Any]],
) -> ToolMessage | Command[Any]:
call_log.append(f"{self._label}_tool")
return handler(request)
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does wrap_tool_call() do?
wrap_tool_call() is a function in the langchain codebase, defined in libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_dynamic_tools.py.
Where is wrap_tool_call() defined?
wrap_tool_call() is defined in libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_dynamic_tools.py at line 371.
What does wrap_tool_call() call?
wrap_tool_call() calls 1 function(s): wrap_tool_call.
What calls wrap_tool_call()?
wrap_tool_call() is called by 4 function(s): test_dynamic_tool_chained_middleware, wrap_tool_call, wrap_tool_call, wrap_tool_call.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free