awrap_model_call() — langchain Function Reference
Architecture documentation for the awrap_model_call() function in test_dynamic_tools.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD ed3a9571_b04a_1815_dec2_1242427f0937["awrap_model_call()"] 4e1e32a7_84a8_0e2b_9494_e371b02d0ac2["LoggingMiddleware"] ed3a9571_b04a_1815_dec2_1242427f0937 -->|defined in| 4e1e32a7_84a8_0e2b_9494_e371b02d0ac2 d7b6b378_c955_4dca_181a_cbcac973f5d5["test_dynamic_tool_chained_middleware()"] d7b6b378_c955_4dca_181a_cbcac973f5d5 -->|calls| ed3a9571_b04a_1815_dec2_1242427f0937 e01e4194_b01c_8e50_1e99_c984c3614db1["awrap_model_call()"] ed3a9571_b04a_1815_dec2_1242427f0937 -->|calls| e01e4194_b01c_8e50_1e99_c984c3614db1 style ed3a9571_b04a_1815_dec2_1242427f0937 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_dynamic_tools.py lines 363–369
async def awrap_model_call(
self,
request: ModelRequest,
handler: Callable[[ModelRequest], Awaitable[ModelResponse]],
) -> ModelCallResult:
call_log.append(f"{self._label}_model")
return await handler(request)
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does awrap_model_call() do?
awrap_model_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 awrap_model_call() defined?
awrap_model_call() is defined in libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_dynamic_tools.py at line 363.
What does awrap_model_call() call?
awrap_model_call() calls 1 function(s): awrap_model_call.
What calls awrap_model_call()?
awrap_model_call() is called by 1 function(s): test_dynamic_tool_chained_middleware.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free