_llm_type() — langchain Function Reference
Architecture documentation for the _llm_type() function in test_base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD b19deba4_e834_4fe0_3b1e_d1687a455bd1["_llm_type()"] cea0ffd9_1a81_7abd_cc47_cc2a28c42925["ModelWithGenerate"] b19deba4_e834_4fe0_3b1e_d1687a455bd1 -->|defined in| cea0ffd9_1a81_7abd_cc47_cc2a28c42925 bc1095e4_873d_82cc_bf04_008e9eeed13c["_llm_type()"] bc1095e4_873d_82cc_bf04_008e9eeed13c -->|calls| b19deba4_e834_4fe0_3b1e_d1687a455bd1 c4562f5d_ed5e_9401_34cf_e874189dc11c["_llm_type()"] c4562f5d_ed5e_9401_34cf_e874189dc11c -->|calls| b19deba4_e834_4fe0_3b1e_d1687a455bd1 2d11eed8_c6f5_3429_0211_aad4e26b7018["_llm_type()"] 2d11eed8_c6f5_3429_0211_aad4e26b7018 -->|calls| b19deba4_e834_4fe0_3b1e_d1687a455bd1 a97f3d65_f310_2f9b_c870_dd3e88b865c6["test_astream_fallback_to_ainvoke()"] a97f3d65_f310_2f9b_c870_dd3e88b865c6 -->|calls| b19deba4_e834_4fe0_3b1e_d1687a455bd1 55285081_e5e6_6fd1_0b9a_239b90e2ed4d["test_astream_implementation_fallback_to_stream()"] 55285081_e5e6_6fd1_0b9a_239b90e2ed4d -->|calls| b19deba4_e834_4fe0_3b1e_d1687a455bd1 4751d0c5_d82f_367c_e1e4_20188bbcd56c["test_astream_implementation_uses_astream()"] 4751d0c5_d82f_367c_e1e4_20188bbcd56c -->|calls| b19deba4_e834_4fe0_3b1e_d1687a455bd1 eda3cbfe_24b5_3e86_f3b7_da926c668103["test_get_ls_params()"] eda3cbfe_24b5_3e86_f3b7_da926c668103 -->|calls| b19deba4_e834_4fe0_3b1e_d1687a455bd1 bc1095e4_873d_82cc_bf04_008e9eeed13c["_llm_type()"] b19deba4_e834_4fe0_3b1e_d1687a455bd1 -->|calls| bc1095e4_873d_82cc_bf04_008e9eeed13c style b19deba4_e834_4fe0_3b1e_d1687a455bd1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/language_models/llms/test_base.py lines 153–154
def _llm_type(self) -> str:
return "fake-chat-model"
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does _llm_type() do?
_llm_type() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/language_models/llms/test_base.py.
Where is _llm_type() defined?
_llm_type() is defined in libs/core/tests/unit_tests/language_models/llms/test_base.py at line 153.
What does _llm_type() call?
_llm_type() calls 1 function(s): _llm_type.
What calls _llm_type()?
_llm_type() is called by 7 function(s): _llm_type, _llm_type, _llm_type, test_astream_fallback_to_ainvoke, test_astream_implementation_fallback_to_stream, test_astream_implementation_uses_astream, test_get_ls_params.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free