//#region src/domains/run/errors/contract-violation-error.d.ts
type ContractViolationPolicy = 'retry' | 'reject' | 'warn';
declare class ContractViolationError extends Error {
  readonly subAgentId: string;
  readonly policy: ContractViolationPolicy;
  readonly attemptedRetries: number;
  readonly lastResponseText: string;
  /** Human-readable description of which contract rule was violated. */
  readonly reason: string;
  constructor(params: {
    subAgentId: string;
    policy: ContractViolationPolicy;
    attemptedRetries: number;
    lastResponseText: string;
    reason: string;
  });
}
//#endregion
export { ContractViolationError, ContractViolationPolicy };