import { IsInt, Min } from "class-validator";

/**
 * DTO for updating token usage for a task
 */
export class UpdateUsageDto {
  @IsInt({ message: "inputTokens must be an integer" })
  @Min(0, { message: "inputTokens must be non-negative" })
  inputTokens!: number;

  @IsInt({ message: "outputTokens must be an integer" })
  @Min(0, { message: "outputTokens must be non-negative" })
  outputTokens!: number;
}
