Home / Function/ wrap_model_call() — langchain Function Reference

wrap_model_call() — langchain Function Reference

Architecture documentation for the wrap_model_call() function in types.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  500f1e07_60be_163a_141c_779d2c09ffd2["wrap_model_call()"]
  11af10c7_4150_b78c_f01b_9e5dfc840a42["types.py"]
  500f1e07_60be_163a_141c_779d2c09ffd2 -->|defined in| 11af10c7_4150_b78c_f01b_9e5dfc840a42
  4c44eeee_7275_fead_c30b_9fbc9dff5261["wrap_model_call()"]
  4c44eeee_7275_fead_c30b_9fbc9dff5261 -->|calls| 500f1e07_60be_163a_141c_779d2c09ffd2
  4c44eeee_7275_fead_c30b_9fbc9dff5261["wrap_model_call()"]
  500f1e07_60be_163a_141c_779d2c09ffd2 -->|calls| 4c44eeee_7275_fead_c30b_9fbc9dff5261
  e2585731_77e3_b7bd_6c0a_772b884fe839["override()"]
  500f1e07_60be_163a_141c_779d2c09ffd2 -->|calls| e2585731_77e3_b7bd_6c0a_772b884fe839
  style 500f1e07_60be_163a_141c_779d2c09ffd2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain_v1/langchain/agents/middleware/types.py lines 1737–1739

def wrap_model_call(
    func: _CallableReturningModelResponse[StateT, ContextT, ResponseT],
) -> AgentMiddleware[StateT, ContextT]: ...

Domain

Subdomains

Called By

Frequently Asked Questions

What does wrap_model_call() do?
wrap_model_call() is a function in the langchain codebase, defined in libs/langchain_v1/langchain/agents/middleware/types.py.
Where is wrap_model_call() defined?
wrap_model_call() is defined in libs/langchain_v1/langchain/agents/middleware/types.py at line 1737.
What does wrap_model_call() call?
wrap_model_call() calls 2 function(s): override, wrap_model_call.
What calls wrap_model_call()?
wrap_model_call() is called by 1 function(s): wrap_model_call.

Analyze Your Own Codebase

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

Try Supermodel Free