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-sdk_syncstreamSyncThreadStreaminterleave_projections
    Method●Since v0.4

    interleave_projections

    Copy
    interleave_projections(
        self,
        channels: list[str],
    ) -> Iterator[tuple[str
    View source on GitHub
    ,
    Any
    ]
    ]

    Parameters

    NameTypeDescription
    channels*list[str]

    Yield (channel_name, item) tuples across multiple projections.

    One shared subscription drives all per-channel decoders; items arrive in server-emit order (the SDK analog of GraphRunStream.interleave).

    Note:

    Handles and streams are yielded eagerly (before their sub-stream completes), so items arrive interleaved in real time. To receive a fully-resolved handle (output already populated), use the dedicated thread.tool_calls / thread.messages projections instead.

    Flat list of "values", "messages", "tool_calls", "subgraphs", and/or extension names. Built-ins yield their typed item (snapshot dict / ChatModelStream / SyncToolCallHandle / SyncScopedStreamHandle); an extension yields its payload dict, keyed by the bare extension name.