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-sdkstreamdecodersDataDecoder
    Class●Since v0.4

    DataDecoder

    Copy
    DataDecoder(
      self,
      method: str,
      namespace: list[str] | None = None
    

    Constructors

    Methods

    View source on GitHub
    )

    Parameters

    NameTypeDescription
    method*str
    namespacelist[str] | None
    Default:None
    constructor
    __init__
    NameType
    methodstr
    namespacelist[str] | None
    method
    feed

    Yields params.data from events of a single method.

    Covers the channels whose projection is just "emit the payload": values, updates, checkpoints, tasks — the SDK analog of local's Values/Updates/Checkpoints/TasksTransformer, all of which push params["data"] unchanged. The REST-state seeding for values stays at the projection layer; it is a one-shot pre-stream fetch, not part of the event state machine.

    The protocol method this decoder consumes.

    When not None, events whose namespace differs are ignored (scope filter, mirroring the local transformers' namespace != scope check). None consumes every namespace — the historical values projection behavior, where subscription scoping is handled upstream.