agentscope.exception._tool 源代码

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

from ._exception_base import AgentOrientedExceptionBase


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