agentscope.exception¶
The exception module in agentscope.
- exception AgentOrientedExceptionBase[source]¶
Bases:
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.
- exception ToolInterruptedError[source]¶
Bases:
AgentOrientedExceptionBase
Exception raised when a tool calling was interrupted by the user.
- exception ToolNotFoundError[source]¶
Bases:
AgentOrientedExceptionBase
Exception raised when a tool was not found.
- exception ToolInvalidArgumentsError[source]¶
Bases:
AgentOrientedExceptionBase
Exception raised when the arguments passed to a tool are invalid.