Files
CRM_Montzar/apps/api/src/ai/dto.ts
T

25 lines
402 B
TypeScript
Raw Normal View History

import { IsOptional, IsString, MaxLength, MinLength } from 'class-validator';
export class VoiceCommandDto {
@IsString()
@MinLength(2)
@MaxLength(800)
text!: string;
}
export class AskMentoDto {
@IsString()
@MinLength(2)
@MaxLength(500)
question!: string;
@IsOptional()
@IsString()
personId?: string;
@IsOptional()
@IsString()
@MaxLength(4000)
chatContext?: string;
}