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-corerunnablesschemaBaseStreamEventevent
    Attribute●Since v0.2

    event

    Event names are of the format: on_[runnable_type]_(start|stream|end).

    Runnable types are one of:

    • llm - used by non chat models
    • chat_model - used by chat models
    • prompt -- e.g., ChatPromptTemplate
    • tool -- from tools defined via @tool decorator or inheriting from Tool/BaseTool
    • chain - most Runnable objects are of this type

    Further, the events are categorized as one of:

    • start - when the Runnable starts
    • stream - when the Runnable is streaming
    • *end - when the Runnable ends

    start, stream and end are associated with slightly different data payload.

    Please see the documentation for EventData for more details.

    Copy
    event: str
    View source on GitHub