awrap_model_call() — langchain Function Reference
Architecture documentation for the awrap_model_call() function in test_wrap_model_call.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD bd51b4b6_85b2_b55f_719b_5240c1a33cae["awrap_model_call()"] 0bea8529_6c7b_cff0_33a7_0b0979b10dd9["RetryMiddleware"] bd51b4b6_85b2_b55f_719b_5240c1a33cae -->|defined in| 0bea8529_6c7b_cff0_33a7_0b0979b10dd9 8b14d6df_29e1_d984_6a2a_6e2bb0e2e4b2["awrap_model_call()"] 8b14d6df_29e1_d984_6a2a_6e2bb0e2e4b2 -->|calls| bd51b4b6_85b2_b55f_719b_5240c1a33cae 8b14d6df_29e1_d984_6a2a_6e2bb0e2e4b2["awrap_model_call()"] bd51b4b6_85b2_b55f_719b_5240c1a33cae -->|calls| 8b14d6df_29e1_d984_6a2a_6e2bb0e2e4b2 style bd51b4b6_85b2_b55f_719b_5240c1a33cae fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_wrap_model_call.py lines 1425–1433
async def awrap_model_call(
self,
request: ModelRequest,
handler: Callable[[ModelRequest], Awaitable[ModelResponse]],
) -> ModelCallResult:
try:
return await handler(request)
except Exception:
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_wrap_model_call.py.
Where is awrap_model_call() defined?
awrap_model_call() is defined in libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_wrap_model_call.py at line 1425.
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): awrap_model_call.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free