LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Graphs
    • Functional API
    • Pregel
    • Checkpointing
    • Storage
    • Caching
    • Types
    • Runtime
    • Config
    • Errors
    • Constants
    • Channels
    • Agents
    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

    OverviewGraphsFunctional APIPregelCheckpointingStorageCachingTypesRuntimeConfigErrorsConstantsChannelsAgents
    LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    PythonlanggraphpregelmainNodeBuildersubscribe_to
    Methodā—Since v0.6

    subscribe_to

    Copy
    subscribe_to(
      self,
      *channels: str = (),
      read: bool = True
    ) -> 
    View source on GitHub
    Self

    Parameters

    NameTypeDescription
    channelsstr
    Default:()
    readbool
    Default:True

    Add channels to subscribe to.

    Node will be invoked when any of these channels are updated, with a dict of the channel values as input.

    Channel name(s) to subscribe to

    If True, the channels will be included in the input to the node. Otherwise, they will trigger the node without being sent in input.