to_json_not_implemented() — langchain Function Reference
Architecture documentation for the to_json_not_implemented() function in serializable.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 2f503e49_ae90_8d40_1784_883082918cdd["to_json_not_implemented()"] b5d5ce95_4e41_41ed_7fe6_1a936c2c18f4["serializable.py"] 2f503e49_ae90_8d40_1784_883082918cdd -->|defined in| b5d5ce95_4e41_41ed_7fe6_1a936c2c18f4 2303e3f8_c7b8_2493_e3a3_ddb8cd0f10ca["to_json_not_implemented()"] 2303e3f8_c7b8_2493_e3a3_ddb8cd0f10ca -->|calls| 2f503e49_ae90_8d40_1784_883082918cdd 2303e3f8_c7b8_2493_e3a3_ddb8cd0f10ca["to_json_not_implemented()"] 2f503e49_ae90_8d40_1784_883082918cdd -->|calls| 2303e3f8_c7b8_2493_e3a3_ddb8cd0f10ca style 2f503e49_ae90_8d40_1784_883082918cdd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/load/serializable.py lines 349–375
def to_json_not_implemented(obj: object) -> SerializedNotImplemented:
"""Serialize a "not implemented" object.
Args:
obj: Object to serialize.
Returns:
`SerializedNotImplemented`
"""
id_: list[str] = []
try:
if hasattr(obj, "__name__"):
id_ = [*obj.__module__.split("."), obj.__name__]
elif hasattr(obj, "__class__"):
id_ = [*obj.__class__.__module__.split("."), obj.__class__.__name__]
except Exception:
logger.debug("Failed to serialize object", exc_info=True)
result: SerializedNotImplemented = {
"lc": 1,
"type": "not_implemented",
"id": id_,
"repr": None,
}
with contextlib.suppress(Exception):
result["repr"] = repr(obj)
return result
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does to_json_not_implemented() do?
to_json_not_implemented() is a function in the langchain codebase, defined in libs/core/langchain_core/load/serializable.py.
Where is to_json_not_implemented() defined?
to_json_not_implemented() is defined in libs/core/langchain_core/load/serializable.py at line 349.
What does to_json_not_implemented() call?
to_json_not_implemented() calls 1 function(s): to_json_not_implemented.
What calls to_json_not_implemented()?
to_json_not_implemented() is called by 1 function(s): to_json_not_implemented.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free