feat: 集成 AI 对话与只读查询工具

This commit is contained in:
2026-07-23 14:24:40 +08:00
parent 302dbe0621
commit f3b59935d6
52 changed files with 4942 additions and 4 deletions

View File

@@ -0,0 +1,38 @@
import { Type } from 'class-transformer';
import { IsInt, IsNotEmpty, IsOptional, IsString, Max, MaxLength, Min } from 'class-validator';
export class CreateConversationDto {
@IsOptional()
@IsString()
@MaxLength(100)
title?: string;
}
export class RenameConversationDto {
@IsString()
@IsNotEmpty()
@MaxLength(100)
title: string;
}
export class SendMessageDto {
@IsString()
@IsNotEmpty()
@MaxLength(16000)
message: string;
}
export class MessagePageQueryDto {
@IsOptional()
@Type(() => Number)
@IsInt()
@Min(1)
page?: number;
@IsOptional()
@Type(() => Number)
@IsInt()
@Min(1)
@Max(100)
limit?: number;
}