Home / Class/ Comparator Class — langchain Architecture

Comparator Class — langchain Architecture

Architecture documentation for the Comparator class in structured_query.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  c1377b5d_a079_68f1_77b9_1103b2e76982["Comparator"]
  2910db70_4057_4517_fbc4_a618465c787c["structured_query.py"]
  c1377b5d_a079_68f1_77b9_1103b2e76982 -->|defined in| 2910db70_4057_4517_fbc4_a618465c787c

Relationship Graph

Source Code

libs/core/langchain_core/structured_query.py lines 107–119

class Comparator(str, Enum):
    """Enumerator of the comparison operators."""

    EQ = "eq"
    NE = "ne"
    GT = "gt"
    GTE = "gte"
    LT = "lt"
    LTE = "lte"
    CONTAIN = "contain"
    LIKE = "like"
    IN = "in"
    NIN = "nin"

Frequently Asked Questions

What is the Comparator class?
Comparator is a class in the langchain codebase, defined in libs/core/langchain_core/structured_query.py.
Where is Comparator defined?
Comparator is defined in libs/core/langchain_core/structured_query.py at line 107.

Analyze Your Own Codebase

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

Try Supermodel Free