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-sdkstreamtransporthttpProtocolSseTransportopen_event_stream
    Method●Since v0.3

    open_event_stream

    Copy
    open_event_stream(
        self,
        params: dict[str, Any],
    ) -> EventStreamHandle
    View source on GitHub

    Open an independent filtered SSE event stream.

    Posts params as a SubscribeParams body to /threads/{thread_id}/stream/events. Returns an EventStreamHandle whose events async iterator yields typed Event dicts as the server emits them. handle.ready resolves on a 2xx response (rejects on HTTP error or transport failure before headers).

    Reconnect: pass params["since"] to filter outbound seqs server-side. The cursor goes in the request body, not as a Last-Event-ID header.