LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • MCP Adapters
    • Overview
    • Agents
    • Callbacks
    • Chains
    • Chat models
    • Embeddings
    • Evaluation
    • Globals
    • Hub
    • Memory
    • Output parsers
    • Retrievers
    • Runnables
    • LangSmith
    • Storage
    Standard Tests
    Text Splitters
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    MCP Adapters
    OverviewAgentsCallbacksChainsChat modelsEmbeddingsEvaluationGlobalsHubMemoryOutput parsersRetrieversRunnablesLangSmithStorage
    Standard Tests
    Text Splitters
    Language
    Theme
    Pythonlangchain-classicsmithevaluationprogressProgressBarCallback
    Class●Since v1.0

    ProgressBarCallback

    Copy
    ProgressBarCallback(
      self,
      total: int,
      ncols: int = 50,
      end_with: str 

    Bases

    base_callbacks.BaseCallbackHandler

    Constructors

    Attributes

    Methods

    Inherited fromBaseCallbackHandler(langchain_core)

    Attributes

    Araise_errorArun_inlineAignore_llmAignore_retry
    View source on GitHub
    =
    '\n'
    )
    A
    ignore_chain
    Aignore_agent
    Aignore_retriever
    Aignore_chat_model
    Aignore_custom_event

    Inherited fromLLMManagerMixin(langchain_core)

    Methods

    Mon_llm_new_token

    Inherited fromChainManagerMixin(langchain_core)

    Methods

    Mon_agent_actionMon_agent_finish

    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

    Parameters

    NameTypeDescription
    total*int

    The total number of items to be processed.

    ncolsint
    Default:50

    The character width of the progress bar.

    end_withstr
    Default:'\n'

    Last string to print after progress bar reaches end.

    constructor
    __init__
    NameType
    totalint
    ncolsint
    end_withstr
    attribute
    total: total
    attribute
    ncols: ncols
    attribute
    end_with: end_with
    attribute
    counter: int
    attribute
    lock
    method
    increment

    Increment the counter and update the progress bar.

    method
    on_chain_error
    method
    on_chain_end
    method
    on_retriever_error
    method
    on_retriever_end
    method
    on_llm_error
    method
    on_llm_end
    method
    on_tool_error
    method
    on_tool_end

    A simple progress bar for the console.