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

export class CreateUserAgentDto {
  @IsString()
  @MinLength(1)
  templateId?: string;

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

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

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

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

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

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

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

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

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