agentscope.exception

The exception module in agentscope.

exception AgentOrientedExceptionBase[源代码]

基类:Exception

The base class for all agent-oriented exceptions. These exceptions are expect to the captured and exposed to the agent during runtime, so that agents can handle the error appropriately during the runtime.

__init__(message)[源代码]

Initialize the exception with a message.

参数:

message (str)

exception ToolInterruptedError[源代码]

基类:AgentOrientedExceptionBase

Exception raised when a tool calling was interrupted by the user.

exception ToolNotFoundError[源代码]

基类:AgentOrientedExceptionBase

Exception raised when a tool was not found.

exception ToolInvalidArgumentsError[源代码]

基类:AgentOrientedExceptionBase

Exception raised when the arguments passed to a tool are invalid.