import { IsString, IsBoolean, IsOptional, IsArray, MinLength } from "class-validator";

export class CreateAgentTemplateDto {
  @IsString()
  @MinLength(1)
  name!: string;

  @IsString()
  @MinLength(1)
  displayName!: string;

  @IsString()
  @MinLength(1)
  role!: string;

  @IsString()
  @MinLength(1)
  personality!: string;

  @IsString()
  @MinLength(1)
  primaryModel!: string;

  @IsArray()
  @IsOptional()
  fallbackModels?: string[];

  @IsArray()
  @IsOptional()
  toolPermissions?: string[];

  @IsString()
  @IsOptional()
  discordChannel?: string;

  @IsBoolean()
  @IsOptional()
  isActive?: boolean;

  @IsBoolean()
  @IsOptional()
  isDefault?: boolean;
}
