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.storebaseListNamespacesOp
    Class●Since v1.0

    ListNamespacesOp

    Operation to list and filter namespaces in the store.

    This operation allows exploring the organization of data, finding specific collections, and navigating the namespace hierarchy.

    Examples

    List all namespaces under the "documents" path:

    ListNamespacesOp(
        match_conditions=(MatchCondition(match_type="prefix", path=("documents",)),),
        max_depth=2
    )

    List all namespaces that end with "v1":

    ListNamespacesOp(
        match_conditions=(MatchCondition(match_type="suffix", path=("v1",)),),
        limit=50
    )
    Copy
    ListNamespacesOp()

    Bases

    NamedTuple

    Attributes

    attribute
    match_conditions: tuple[MatchCondition, ...] | None

    Optional conditions for filtering namespaces.

    Examples

    All user namespaces:

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

    All namespaces that start with "docs" and end with "draft":

    (
        MatchCondition(match_type="prefix", path=("docs",)),
        MatchCondition(match_type="suffix", path=("draft",))
    ) 
    attribute
    max_depth: int | None

    Maximum depth of namespace hierarchy to return.

    attribute
    limit: int

    Maximum number of namespaces to return.

    attribute
    offset: int

    Number of namespaces to skip for pagination.

    View source on GitHub