Home / Function/ awrap_model_call() — langchain Function Reference

awrap_model_call() — langchain Function Reference

Architecture documentation for the awrap_model_call() function in test_framework.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  8c235727_8567_e1cd_5403_61b47aac135c["awrap_model_call()"]
  3bba53d6_a162_22a9_9648_5f62eeb0d2fc["AsyncOnlyMiddleware"]
  8c235727_8567_e1cd_5403_61b47aac135c -->|defined in| 3bba53d6_a162_22a9_9648_5f62eeb0d2fc
  10e1d990_cfdc_a164_2985_e0b72b2fdbb1["awrap_model_call()"]
  10e1d990_cfdc_a164_2985_e0b72b2fdbb1 -->|calls| 8c235727_8567_e1cd_5403_61b47aac135c
  10e1d990_cfdc_a164_2985_e0b72b2fdbb1["awrap_model_call()"]
  8c235727_8567_e1cd_5403_61b47aac135c -->|calls| 10e1d990_cfdc_a164_2985_e0b72b2fdbb1
  style 8c235727_8567_e1cd_5403_61b47aac135c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_framework.py lines 485–490

        async def awrap_model_call(
            self,
            request: ModelRequest,
            handler: Callable[[ModelRequest], Awaitable[ModelResponse]],
        ) -> ModelCallResult:
            return await handler(request)

Domain

Subdomains

Called By

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_framework.py.
Where is awrap_model_call() defined?
awrap_model_call() is defined in libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_framework.py at line 485.
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