Source code for agentscope.exception._tool

# -*- coding: utf-8 -*-
"""The tool-related exceptions in agentscope."""

from ._exception_base import AgentOrientedExceptionBase


[docs] class ToolNotFoundError(AgentOrientedExceptionBase): """Exception raised when a tool was not found."""
[docs] class ToolInterruptedError(AgentOrientedExceptionBase): """Exception raised when a tool calling was interrupted by the user."""
[docs] class ToolInvalidArgumentsError(AgentOrientedExceptionBase): """Exception raised when the arguments passed to a tool are invalid."""