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-sdkstreamsubscriptionis_prefix_match
    Function●Since v0.3

    is_prefix_match

    Copy
    is_prefix_match(
        event_namespace: Namespace,
        prefix: Namespace,
    ) -> bool
    View source on GitHub

    Whether event_namespace starts with prefix.

    Segments compare literally first; if the prefix segment contains no :, the candidate is also compared after its dynamic suffix is stripped. Mirrors is_prefix_match in api/langgraph_api/protocol/namespace.py.