LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Caches
    • Callbacks
    • Documents
    • Document loaders
    • Embeddings
    • Exceptions
    • Language models
    • Serialization
    • Output parsers
    • Prompts
    • Rate limiters
    • Retrievers
    • Runnables
    • Utilities
    • Vector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    OverviewCachesCallbacksDocumentsDocument loadersEmbeddingsExceptionsLanguage modelsSerializationOutput parsersPromptsRate limitersRetrieversRunnablesUtilitiesVector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    Language
    Theme
    Pythonlangchain-corelanguage_modelschat_model_streamSyncProjection
    Classā—Since v1.3

    SyncProjection

    Copy
    SyncProjection(
        self,
    )

    Bases

    _ProjectionBase

    Constructors

    Methods

    View source on GitHub
    constructor
    __init__
    method
    set_start

    Install a lazy-start callback invoked on first consumption.

    method
    set_request_more

    Install the pull callback the iterator uses to drain the source.

    method
    get

    Drain via _request_more and return the final value.

    Sync iterable of deltas with pull-based backpressure.

    Follows the same _request_more convention as langgraph's EventLog: when the cursor catches up to the buffer and the projection is not done, it calls _request_more() to pull more events from the producer.

    Each call to __iter__ creates a new cursor at position 0. Multiple iterators replay all deltas from the start.