import { IsOptional, IsObject, IsNumber, Min } from "class-validator";

/**
 * DTO for completing a job from the coordinator
 */
export class CompleteJobDto {
  @IsOptional()
  @IsObject()
  result?: Record<string, unknown>;

  @IsOptional()
  @IsNumber()
  @Min(0)
  tokensUsed?: number;

  @IsOptional()
  @IsNumber()
  @Min(0)
  durationSeconds?: number;
}
