工具执行错误
| 23 | |
| 24 | |
| 25 | class ToolExecutionError(AsterBridgeError): |
| 26 | """工具执行错误""" |
| 27 | def __init__(self, tool_name: str, error_msg: str): |
| 28 | self.tool_name = tool_name |
| 29 | self.error_msg = error_msg |
| 30 | super().__init__(f"Tool {tool_name} failed: {error_msg}") |
| 31 | |
| 32 | |
| 33 | class NetworkError(AsterBridgeError): |