LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Graphs
    • Functional API
    • Pregel
    • Checkpointing
    • Storage
    • Caching
    • Types
    • Runtime
    • Config
    • Errors
    • Constants
    • Channels
    • Agents
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    OverviewGraphsFunctional APIPregelCheckpointingStorageCachingTypesRuntimeConfigErrorsConstantsChannelsAgents
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    PythonlanggraphcallbacksGraphCallbackHandler
    Classā—Since v1.1

    GraphCallbackHandler

    Copy
    GraphCallbackHandler()

    Bases

    BaseCallbackHandler

    Methods

    Inherited fromBaseCallbackHandler(langchain_core)

    Attributes

    Araise_errorArun_inlineAignore_llmAignore_retryA
    View source on GitHub
    ignore_chain
    Aignore_agent
    Aignore_retriever
    Aignore_chat_model
    Aignore_custom_event

    Inherited fromLLMManagerMixin(langchain_core)

    Methods

    Mon_llm_new_tokenMon_llm_endMon_llm_error

    Inherited fromChainManagerMixin(langchain_core)

    Methods

    Mon_chain_endMon_chain_errorMon_agent_actionMon_agent_finish

    Inherited fromToolManagerMixin(langchain_core)

    Methods

    Mon_tool_endMon_tool_error

    Inherited fromRetrieverManagerMixin(langchain_core)

    Methods

    Mon_retriever_errorMon_retriever_end

    Inherited fromCallbackManagerMixin(langchain_core)

    Methods

    Mon_llm_startMon_chat_model_startMon_retriever_startMon_chain_startMon_tool_start

    Inherited fromRunManagerMixin(langchain_core)

    Methods

    Mon_textMon_retryMon_custom_event
    method
    on_interrupt

    Run when graph execution pauses due to one or more interrupts.

    method
    on_resume

    Run when graph execution resumes from a persisted checkpoint.

    Base class for graph-level lifecycle callbacks.

    Subclass this handler to observe graph lifecycle transitions that are specific to LangGraph execution, rather than generic LangChain runnable callbacks.

    Instances can be passed through config["callbacks"] when invoking a graph. Only handlers that inherit from GraphCallbackHandler receive these lifecycle events.