Home / Function/ __init__() — langchain Function Reference

__init__() — langchain Function Reference

Architecture documentation for the __init__() function in json_schema.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  7ce85c09_f752_c118_9d82_5cf159fac4e7["__init__()"]
  9babfe39_52f2_aa6b_17f6_a55234538495["JsonSchemaEvaluator"]
  7ce85c09_f752_c118_9d82_5cf159fac4e7 -->|defined in| 9babfe39_52f2_aa6b_17f6_a55234538495
  style 7ce85c09_f752_c118_9d82_5cf159fac4e7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/evaluation/parsing/json_schema.py lines 36–50

    def __init__(self, **_: Any) -> None:
        """Initializes the JsonSchemaEvaluator.

        Raises:
            ImportError: If the jsonschema package is not installed.
        """
        super().__init__()
        try:
            import jsonschema  # noqa: F401
        except ImportError as e:
            msg = (
                "The JsonSchemaEvaluator requires the jsonschema package."
                " Please install it with `pip install jsonschema`."
            )
            raise ImportError(msg) from e

Domain

Subdomains

Frequently Asked Questions

What does __init__() do?
__init__() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/evaluation/parsing/json_schema.py.
Where is __init__() defined?
__init__() is defined in libs/langchain/langchain_classic/evaluation/parsing/json_schema.py at line 36.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free