// src/errors.ts
import { AgentEvalError } from "@tangle-network/agent-eval";
import {
  AgentEvalError as AgentEvalError2,
  ConfigError,
  JudgeError,
  NotFoundError,
  ValidationError
} from "@tangle-network/agent-eval";
var SessionMismatchError = class extends AgentEvalError {
  sessionBackend;
  requestedBackend;
  constructor(sessionBackend, requestedBackend, options) {
    super(
      "validation",
      `Cannot resume ${sessionBackend} session with ${requestedBackend} backend`,
      options
    );
    this.sessionBackend = sessionBackend;
    this.requestedBackend = requestedBackend;
  }
};
var BackendTransportError = class extends AgentEvalError {
  backend;
  status;
  /**
   * Truncated upstream response body (≤2 KiB) when available. Diagnostic
   * only — surfaces in `backend_error.error.body` and `final.error.body`
   * so operators can see "free_tier_limit", "invalid_api_key", etc. without
   * cracking the log line open.
   */
  body;
  constructor(backend, message, options) {
    super("config", message, options);
    this.backend = backend;
    this.status = options?.status;
    this.body = options?.body;
  }
};
var RuntimeRunStateError = class extends AgentEvalError {
  constructor(message, options) {
    super("validation", message, options);
  }
};
var PlannerError = class extends AgentEvalError {
  constructor(message, options) {
    super("validation", message, options);
  }
};
var AnalystError = class extends AgentEvalError {
  constructor(message, options) {
    super("validation", message, options);
  }
};

export {
  SessionMismatchError,
  BackendTransportError,
  RuntimeRunStateError,
  PlannerError,
  AnalystError,
  AgentEvalError2 as AgentEvalError,
  ConfigError,
  JudgeError,
  NotFoundError,
  ValidationError
};
//# sourceMappingURL=chunk-YEJR7IXO.js.map