Home / Function/ awrap_model_call() — langchain Function Reference

awrap_model_call() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  d883a19b_8d28_0b2c_3234_b7a16a215d77["awrap_model_call()"]
  4083cd76_cab5_d5bd_d357_fd49c9292e08["OuterMiddleware"]
  d883a19b_8d28_0b2c_3234_b7a16a215d77 -->|defined in| 4083cd76_cab5_d5bd_d357_fd49c9292e08
  51687d1d_2aa5_1a8f_9622_1f572a1fb956["awrap_model_call()"]
  51687d1d_2aa5_1a8f_9622_1f572a1fb956 -->|calls| d883a19b_8d28_0b2c_3234_b7a16a215d77
  02c28a57_5c14_78e8_0f2e_ac65961f248d["awrap_model_call()"]
  02c28a57_5c14_78e8_0f2e_ac65961f248d -->|calls| d883a19b_8d28_0b2c_3234_b7a16a215d77
  a2172c1b_74ae_e40f_604f_4e9b51c38954["awrap_model_call()"]
  a2172c1b_74ae_e40f_604f_4e9b51c38954 -->|calls| d883a19b_8d28_0b2c_3234_b7a16a215d77
  10dd9fe6_903e_75b9_8588_1ed9fe44acf0["awrap_model_call()"]
  10dd9fe6_903e_75b9_8588_1ed9fe44acf0 -->|calls| d883a19b_8d28_0b2c_3234_b7a16a215d77
  ddd9e10e_17ae_4403_2d44_17d1e5e8c48d["awrap_model_call()"]
  ddd9e10e_17ae_4403_2d44_17d1e5e8c48d -->|calls| d883a19b_8d28_0b2c_3234_b7a16a215d77
  51687d1d_2aa5_1a8f_9622_1f572a1fb956["awrap_model_call()"]
  d883a19b_8d28_0b2c_3234_b7a16a215d77 -->|calls| 51687d1d_2aa5_1a8f_9622_1f572a1fb956
  02c28a57_5c14_78e8_0f2e_ac65961f248d["awrap_model_call()"]
  d883a19b_8d28_0b2c_3234_b7a16a215d77 -->|calls| 02c28a57_5c14_78e8_0f2e_ac65961f248d
  style d883a19b_8d28_0b2c_3234_b7a16a215d77 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_wrap_model_call_state_update.py lines 646–653

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

Domain

Subdomains

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_state_update.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_state_update.py at line 646.
What does awrap_model_call() call?
awrap_model_call() calls 2 function(s): awrap_model_call, awrap_model_call.
What calls awrap_model_call()?
awrap_model_call() is called by 5 function(s): awrap_model_call, awrap_model_call, awrap_model_call, awrap_model_call, awrap_model_call.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free