import { IsString, IsNotEmpty, IsOptional, IsUUID, MaxLength } from 'class-validator';

export class ChatMessageDto {
  @IsOptional()
  @IsUUID(4)
  conversationId?: string;

  @IsString()
  @IsNotEmpty()
  @MaxLength(32_000)
  content!: string;
}

export class ChatResponseDto {
  conversationId!: string;
  text!: string;
}
