wrap_tool_call() — langchain Function Reference
Architecture documentation for the wrap_tool_call() function in types.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 0c14e03a_0bf4_13ec_9acc_ac8d8e0eed8d["wrap_tool_call()"] 11af10c7_4150_b78c_f01b_9e5dfc840a42["types.py"] 0c14e03a_0bf4_13ec_9acc_ac8d8e0eed8d -->|defined in| 11af10c7_4150_b78c_f01b_9e5dfc840a42 cee459c1_eb7f_c7cc_29a3_dacfd8fe243b["wrap_tool_call()"] cee459c1_eb7f_c7cc_29a3_dacfd8fe243b -->|calls| 0c14e03a_0bf4_13ec_9acc_ac8d8e0eed8d cee459c1_eb7f_c7cc_29a3_dacfd8fe243b["wrap_tool_call()"] 0c14e03a_0bf4_13ec_9acc_ac8d8e0eed8d -->|calls| cee459c1_eb7f_c7cc_29a3_dacfd8fe243b e2585731_77e3_b7bd_6c0a_772b884fe839["override()"] 0c14e03a_0bf4_13ec_9acc_ac8d8e0eed8d -->|calls| e2585731_77e3_b7bd_6c0a_772b884fe839 style 0c14e03a_0bf4_13ec_9acc_ac8d8e0eed8d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain_v1/langchain/agents/middleware/types.py lines 1896–1898
def wrap_tool_call(
func: _CallableReturningToolResponse,
) -> AgentMiddleware: ...
Domain
Subdomains
Called By
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/langchain/agents/middleware/types.py.
Where is wrap_tool_call() defined?
wrap_tool_call() is defined in libs/langchain_v1/langchain/agents/middleware/types.py at line 1896.
What does wrap_tool_call() call?
wrap_tool_call() calls 2 function(s): override, wrap_tool_call.
What calls wrap_tool_call()?
wrap_tool_call() is called by 1 function(s): wrap_tool_call.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free