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_streamSyncTextProjection
    Class●Since v1.3

    SyncTextProjection

    Copy
    SyncTextProjection(
        self,
    )

    Bases

    SyncProjection

    Inherited fromSyncProjection

    Methods

    Mset_start
    —

    Install a lazy-start callback invoked on first consumption.

    Mset_request_more
    —

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

    Mget
    —

    Drain via _request_more and return the final value.

    View source on GitHub

    String-specialized sync projection.

    Adds __str__, __bool__, __repr__ for ergonomic use with .text and .reasoning projections.