File size: 595 Bytes
9792ea7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# -*- coding: utf-8 -*-
"""The tool-related exceptions in agentscope."""

from ._base import AgentOrientedException


class ToolNotFoundError(AgentOrientedException):
    """Exception raised when a tool was not found."""


class ToolInterruptedError(AgentOrientedException):
    """Exception raised when a tool calling was interrupted by the user."""


class ToolJSONDecodeError(AgentOrientedException):
    """Exception raised when tool arguments fail JSON decoding or repair."""


class ToolGroupInactiveError(AgentOrientedException):
    """Exception raised when a tool group is inactive."""