NoProfileModel Class — langchain Architecture
Architecture documentation for the NoProfileModel class in test_summarization.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 0f9d677c_a7f0_8265_c0d3_b9c6994d8b5b["NoProfileModel"] 48aa29b8_65e7_522f_a445_a441eeb6baff["BaseChatModel"] 0f9d677c_a7f0_8265_c0d3_b9c6994d8b5b -->|extends| 48aa29b8_65e7_522f_a445_a441eeb6baff 1911a463_b67d_0301_5ef1_5c535dafc14a["test_summarization.py"] 0f9d677c_a7f0_8265_c0d3_b9c6994d8b5b -->|defined in| 1911a463_b67d_0301_5ef1_5c535dafc14a 1bc1548e_ee4f_700f_8345_3da52571e216["_generate()"] 0f9d677c_a7f0_8265_c0d3_b9c6994d8b5b -->|method| 1bc1548e_ee4f_700f_8345_3da52571e216 ff917ef1_26a0_af10_2ccd_2cc138eebce1["_llm_type()"] 0f9d677c_a7f0_8265_c0d3_b9c6994d8b5b -->|method| ff917ef1_26a0_af10_2ccd_2cc138eebce1
Relationship Graph
Source Code
libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_summarization.py lines 645–658
class NoProfileModel(BaseChatModel):
@override
def _generate(
self,
messages: list[BaseMessage],
stop: list[str] | None = None,
run_manager: CallbackManagerForLLMRun | None = None,
**kwargs: Any,
) -> ChatResult:
return ChatResult(generations=[ChatGeneration(message=AIMessage(content="Summary"))])
@property
def _llm_type(self) -> str:
return "mock"
Defined In
Extends
Source
Frequently Asked Questions
What is the NoProfileModel class?
NoProfileModel is a class in the langchain codebase, defined in libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_summarization.py.
Where is NoProfileModel defined?
NoProfileModel is defined in libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_summarization.py at line 645.
What does NoProfileModel extend?
NoProfileModel extends BaseChatModel.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free