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
    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
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraphstream_muxStreamMuxpush
    Methodā—Since v1.1

    push

    Copy
    push(
        self,
        event: ProtocolEvent,
    ) -> None
    View source on GitHub

    Parameters

    NameTypeDescription
    event*ProtocolEvent

    The protocol event to dispatch.

    Route an event through all transformers, then append to the main log.

    Each transformer's process() is called in registration order. If any transformer returns False, the event is suppressed from the main log, but transformers that already saw it keep their side effects.

    On the root mux, seq is assigned right before an event enters the main log, not before the transformer pipeline runs. This ensures that events auto-forwarded from StreamChannels during process() get earlier seq numbers than the original event, preserving monotonic ordering in the root log. Child muxes do not assign seq, so subgraph forwarding can share event objects without mutating their envelopes.