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_streamAsyncTextProjection
    Class●Since v1.5

    AsyncTextProjection

    Copy
    AsyncTextProjection(
        self,
    )

    Bases

    AsyncProjection

    Methods

    Inherited fromAsyncProjection

    Methods

    Mset_start
    —

    Install a lazy-start callback invoked on first consumption.

    Mset_arequest_more
    —

    Wire the async pull callback iterators use to drive the source.

    Mfail
    —

    Mark errored and notify waiters.

    View source on GitHub
    method
    push

    Append a text delta and notify waiters.

    method
    complete

    Set the final accumulated text and notify waiters.

    String-specialized async projection for .text and .reasoning.