Some checks failed
ci/woodpecker/push/ci Pipeline failed
Co-authored-by: Jason Woltje <jason@diversecanvas.com> Co-committed-by: Jason Woltje <jason@diversecanvas.com>
36 lines
557 B
TypeScript
36 lines
557 B
TypeScript
import { IsOptional, IsString, IsUUID, MaxLength } from 'class-validator';
|
|
|
|
export class ChatRequestDto {
|
|
@IsOptional()
|
|
@IsUUID()
|
|
conversationId?: string;
|
|
|
|
@IsString()
|
|
@MaxLength(10_000)
|
|
content!: string;
|
|
}
|
|
|
|
export class ChatSocketMessageDto {
|
|
@IsOptional()
|
|
@IsUUID()
|
|
conversationId?: string;
|
|
|
|
@IsString()
|
|
@MaxLength(10_000)
|
|
content!: string;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
@MaxLength(255)
|
|
provider?: string;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
@MaxLength(255)
|
|
modelId?: string;
|
|
|
|
@IsOptional()
|
|
@IsUUID()
|
|
agentId?: string;
|
|
}
|