"""Executor 模块异常。""" class ExecutorError(Exception): """任务提交、调度或 Agent 调用失败。""" class TaskNotFoundError(ExecutorError): """未知 task_id。""" def __init__(self, task_id: str) -> None: self.task_id = task_id super().__init__(f"任务不存在: {task_id}") class TraceNotReadyError(ExecutorError): """Trace 在 Agent 侧不可用。"""