abefore_model() — langchain Function Reference
Architecture documentation for the abefore_model() function in test_wrap_model_call.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 57eb737e_c465_44cb_0f93_a9f298204d77["abefore_model()"] 784d6d35_d2e6_dbe1_b0cc_28d564aa53df["MixedMiddleware"] 57eb737e_c465_44cb_0f93_a9f298204d77 -->|defined in| 784d6d35_d2e6_dbe1_b0cc_28d564aa53df a19c0a5c_ca2b_3869_ab7a_70d066eca849["test_sync_invoke_with_mixed_middleware()"] a19c0a5c_ca2b_3869_ab7a_70d066eca849 -->|calls| 57eb737e_c465_44cb_0f93_a9f298204d77 style 57eb737e_c465_44cb_0f93_a9f298204d77 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 1500–1501
async def abefore_model(self, state: AgentState[Any], runtime: Runtime[Any]) -> None:
calls.append("MixedMiddleware.abefore_model")
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does abefore_model() do?
abefore_model() 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 abefore_model() defined?
abefore_model() is defined in libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_wrap_model_call.py at line 1500.
What calls abefore_model()?
abefore_model() is called by 1 function(s): test_sync_invoke_with_mixed_middleware.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free