LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph.storebaseMatchCondition
    Class●Since v1.0

    MatchCondition

    Copy
    MatchCondition()

    Bases

    NamedTuple

    Attributes

    View source on GitHub
    attribute
    match_type: NamespaceMatchType

    Type of namespace matching to perform.

    attribute
    path: NamespacePath

    Namespace path pattern that can include wildcards.

    Represents a pattern for matching namespaces in the store.

    This class combines a match type (prefix or suffix) with a namespace path pattern that can include wildcards to flexibly match different namespace hierarchies.

    Examples

    Prefix matching:

    MatchCondition(match_type="prefix", path=("users", "profiles"))

    Suffix matching with wildcard:

    MatchCondition(match_type="suffix", path=("cache", "*"))

    Simple suffix matching:

    MatchCondition(match_type="suffix", path=("v1",))