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

    attribute
    Run: RunTree

    Functions

    function
    acall_func_with_variable_args

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

    function
    call_func_with_variable_args

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

    Classes

    class
    RunnableConfig

    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"]}
    class
    AsyncBaseTracer

    Async base interface for tracers.

    class
    BaseTracer

    Base interface for tracers.

    class
    RootListenersTracer

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

    class
    AsyncRootListenersTracer

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

    Type Aliases

    typeAlias
    Listener: Callable[[Run], None] | Callable[[Run, RunnableConfig], None]
    typeAlias
    AsyncListener: Callable[[Run], Awaitable[None]] | Callable[[Run, RunnableConfig], Awaitable[None]]
    View source on GitHub