from __future__ import annotations class AgentKitPluginError(Exception): """Base class for exceptions in the agent plugin module.""" def __init__(self, message, code=None): self.message = message self.code = code def __str__(self): return f"[{self.code}] ${self.message}" def __repr__(self): return f"AgentPluginError({self.message}, {self.code})"