LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    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

    LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph.prebuilttool_nodeToolInvocationError
    Classā—Since v1.0

    ToolInvocationError

    Copy
    ToolInvocationError(
      self,
      tool_name: str,
      source: ValidationError,
      tool_kwargs: dict[str

    Bases

    ToolException

    Constructors

    Attributes

    View source on GitHub
    ,
    Any
    ]
    ,
    filtered_errors
    :
    list
    [
    ErrorDetails
    ]
    |
    None
    =
    None
    )

    Parameters

    NameTypeDescription
    tool_name*str

    The name of the tool that failed.

    source*ValidationError

    The exception that occurred.

    tool_kwargs*dict[str, Any]

    The keyword arguments that were passed to the tool.

    filtered_errorslist[ErrorDetails] | None
    Default:None
    constructor
    __init__
    NameType
    tool_namestr
    sourceValidationError
    tool_kwargsdict[str, Any]
    filtered_errorslist[ErrorDetails] | None
    attribute
    message
    attribute
    tool_name: tool_name
    attribute
    tool_kwargs: tool_kwargs
    attribute
    source: source
    attribute
    filtered_errors: filtered_errors

    An error occurred while invoking a tool due to invalid arguments.

    This exception is only raised when invoking a tool using the ToolNode!

    Optional list of filtered validation errors excluding injected arguments.