An error occurred while invoking a tool due to invalid arguments.
This exception is only raised when invoking a tool using the ToolNode!
ToolInvocationError(
self,
tool_name: str,
source: ValidationError,
tool_kwargs: dict[str, Any],
filtered_errors: list[ErrorDetails] | None = None
)| Name | Type | Description |
|---|---|---|
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_errors | list[ErrorDetails] | None | Default: NoneOptional list of filtered validation errors excluding injected arguments. |