test_cleanup_serialized() — langchain Function Reference
Architecture documentation for the test_cleanup_serialized() function in test_cache.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD ed62915e_cca6_a9ad_78e8_acf474162884["test_cleanup_serialized()"] 51f634bf_713d_3f19_d694_5c6ef3e59c57["test_cache.py"] ed62915e_cca6_a9ad_78e8_acf474162884 -->|defined in| 51f634bf_713d_3f19_d694_5c6ef3e59c57 style ed62915e_cca6_a9ad_78e8_acf474162884 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/language_models/chat_models/test_cache.py lines 393–457
def test_cleanup_serialized() -> None:
cleanup_serialized = {
"lc": 1,
"type": "constructor",
"id": [
"tests",
"unit_tests",
"language_models",
"chat_models",
"test_cache",
"CustomChat",
],
"kwargs": {
"messages": {
"lc": 1,
"type": "not_implemented",
"id": ["builtins", "list_iterator"],
"repr": "<list_iterator object at 0x79ff437f8d30>",
},
},
"name": "CustomChat",
"graph": {
"nodes": [
{"id": 0, "type": "schema", "data": "CustomChatInput"},
{
"id": 1,
"type": "runnable",
"data": {
"id": [
"tests",
"unit_tests",
"language_models",
"chat_models",
"test_cache",
"CustomChat",
],
"name": "CustomChat",
},
},
{"id": 2, "type": "schema", "data": "CustomChatOutput"},
],
"edges": [{"source": 0, "target": 1}, {"source": 1, "target": 2}],
},
}
_cleanup_llm_representation(cleanup_serialized, 1)
assert cleanup_serialized == {
"id": [
"tests",
"unit_tests",
"language_models",
"chat_models",
"test_cache",
"CustomChat",
],
"kwargs": {
"messages": {
"id": ["builtins", "list_iterator"],
"lc": 1,
"type": "not_implemented",
},
},
"lc": 1,
"name": "CustomChat",
"type": "constructor",
}
Domain
Subdomains
Source
Frequently Asked Questions
What does test_cleanup_serialized() do?
test_cleanup_serialized() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/language_models/chat_models/test_cache.py.
Where is test_cleanup_serialized() defined?
test_cleanup_serialized() is defined in libs/core/tests/unit_tests/language_models/chat_models/test_cache.py at line 393.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free