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-coretracersbaseAsyncBaseTracer
    Class●Since v0.2

    AsyncBaseTracer

    Copy
    AsyncBaseTracer(
      self,
      *,
      _schema_format: Literal['original', 'streaming_events', 'original+chat'] = 'original',
      **kwargs: Any

    Bases

    _TracerCoreAsyncCallbackHandlerABC

    Methods

    Inherited fromAsyncCallbackHandler

    Methods

    Mon_text
    —

    Run on an arbitrary text.

    Mon_agent_action
    —

    Run on agent action.

    Mon_agent_finish
    —

    Run on the agent end.

    View source on GitHub
    =
    {
    }
    )
    M
    on_custom_event
    —

    Generate a custom astream event.

    Inherited fromBaseCallbackHandler

    Attributes

    Araise_error: bool
    —

    Whether to raise an error if an exception occurs.

    Arun_inline: boolAignore_llm: bool
    —

    Whether to ignore LLM callbacks.

    Aignore_retry: bool
    —

    Whether to ignore retry callbacks.

    Aignore_chain: bool
    —

    Whether to ignore chain callbacks.

    Aignore_agent: bool
    —

    Whether to ignore agent callbacks.

    Aignore_retriever: bool
    —

    Whether to ignore retriever callbacks.

    Aignore_chat_model: bool
    —

    Whether to ignore chat model callbacks.

    Aignore_custom_event: bool
    —

    Ignore custom event.

    Inherited fromChainManagerMixin

    Methods

    Mon_agent_action
    —

    Run on agent action.

    Mon_agent_finish
    —

    Run on the agent end.

    Inherited fromRunManagerMixin

    Methods

    Mon_text
    —

    Run on an arbitrary text.

    Mon_custom_event
    —

    Generate a custom astream event.

    method
    on_chat_model_start
    method
    on_llm_start
    method
    on_llm_new_token
    method
    on_retry
    method
    on_llm_end
    method
    on_llm_error
    method
    on_chain_start
    method
    on_chain_end
    method
    on_chain_error
    method
    on_tool_start
    method
    on_tool_end
    method
    on_tool_error
    method
    on_retriever_start
    method
    on_retriever_error
    method
    on_retriever_end

    Async base interface for tracers.