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-coretracersroot_listeners
    Moduleā—Since v0.1

    root_listeners

    Tracers that call listeners.

    Attributes

    Functions

    Classes

    Type Aliases

    View source on GitHub
    attribute
    Run: RunTree
    function
    acall_func_with_variable_args
    function
    call_func_with_variable_args
    class
    RunnableConfig
    class
    AsyncBaseTracer
    class
    BaseTracer
    class
    RootListenersTracer
    class
    AsyncRootListenersTracer
    typeAlias
    Listener: Callable[[Run], None] | Callable[[Run, RunnableConfig], None]
    typeAlias
    AsyncListener: Callable[[Run], Awaitable[None]] | Callable[[Run, RunnableConfig], Awaitable[None]]

    Async call function that may optionally accept a run_manager and/or config.

    Call function that may optionally accept a run_manager and/or config.

    Async base interface for tracers.

    Base interface for tracers.

    Tracer that calls listeners on run start, end, and error.

    Async tracer that calls listeners on run start, end, and error.

    Configuration for a Runnable.

    Note

    Custom values

    The TypedDict has total=False set intentionally to:

    • Allow partial configs to be created and merged together via merge_configs
    • Support config propagation from parent to child runnables via var_child_runnable_config (a ContextVar that automatically passes config down the call stack without explicit parameter passing), where configs are merged rather than replaced
    Example
    # Parent sets tags
    chain.invoke(input, config={"tags": ["parent"]})
    # Child automatically inherits and can add:
    # ensure_config({"tags": ["child"]}) -> {"tags": ["parent", "child"]}