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-corecallbacksstdoutStdOutCallbackHandleron_tool_end
    Methodā—Since v0.1

    on_tool_end

    Copy
    on_tool_end(
      self,
      output: Any,
      color: str | None = None,
      observation_prefix: str
    View source on GitHub
    |
    None
    =
    None
    ,
    llm_prefix
    :
    str
    |
    None
    =
    None
    ,
    **
    kwargs
    :
    Any
    =
    {
    }
    )
    ->
    None

    Parameters

    NameTypeDescription
    output*Any

    The output to print.

    colorstr | None
    Default:None

    The color to use for the text.

    observation_prefixstr | None
    Default:None

    The observation prefix.

    llm_prefixstr | None
    Default:None
    **kwargsAny
    Default:{}

    If not the final action, print out observation.

    The LLM prefix.

    Additional keyword arguments.