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_syncstream
    Moduleā—Since v0.3

    stream

    Attributes

    Classes

    Type Aliases

    View source on GitHub
    attribute
    SubgraphStatus: Literal['started', 'completed', 'failed', 'interrupted']
    class
    SyncHttpClient

    Handle synchronous requests to the LangGraph API.

    Provides error messaging and content handling enhancements above the underlying httpx client, mirroring the interface of HttpClient but for sync usage.

    class
    SyncStreamController

    Owns the sync shared SSE handle, subscription registry, and fan-out thread.

    class
    SyncEventStreamHandle

    Handle for one sync filtered event stream.

    class
    SyncProtocolSseTransport

    Sync v3 protocol transport bound to one thread id.

    class
    SyncProtocolTransport

    Protocol implemented by sync SSE and WebSocket transports.

    class
    SyncProtocolWebSocketTransport

    Sync v3 protocol transport using HTTP commands and WebSocket events.

    class
    InterruptPayload

    Payload surfaced when the server requests human input for a thread.

    class
    SyncRunModule

    Command dispatcher for run.start.

    Bound to one SyncThreadStream; accesses its transport and id allocator.

    class
    SyncToolCallHandle

    Sync handle for one root-scope tool call.

    class
    SyncScopedStreamHandle

    Scoped streaming handle for one discovered child invocation.

    class
    SyncThreadStream

    Synchronous context manager for one thread's v3 streaming session.

    Construct via client.threads.stream(thread_id=None, *, assistant_id, ...) rather than instantiating directly.

    typeAlias
    QueryParamTypes: Mapping[str, PrimitiveData | Sequence[PrimitiveData]] | list[tuple[str, PrimitiveData]] | tuple[tuple[str, PrimitiveData], ...] | str | bytes

    Synchronous thread-centric streaming surface for the v3 protocol.

    SyncThreadStream is a synchronous context manager that owns a SyncProtocolSseTransport for one thread, dispatches commands (run.start, run.respond), exposes typed subscriptions over a single shared SSE, surfaces lifecycle state (interrupted, interrupts) via an always-on lifecycle watcher thread, and provides typed projections (thread.values, thread.messages, thread.tool_calls, thread.extensions).

    Sync mirror of libs/sdk-py/langgraph_sdk/_async/stream.py.