|
@@ -3,7 +3,7 @@ import {
|
|
|
IsNotEmpty,
|
|
|
IsNumber,
|
|
|
IsArray,
|
|
|
- IsObject
|
|
|
+ IsOptional
|
|
|
} from 'class-validator'
|
|
|
|
|
|
export class GetNativeAgentListDto {
|
|
@@ -16,10 +16,12 @@ export class GetNativeAgentListDto {
|
|
|
pageSize: number
|
|
|
|
|
|
@IsString()
|
|
|
- createUser: string
|
|
|
+ @IsOptional()
|
|
|
+ createUser?: string
|
|
|
|
|
|
@IsString()
|
|
|
- updateUser: string
|
|
|
+ @IsOptional()
|
|
|
+ updateUser?: string
|
|
|
}
|
|
|
|
|
|
export class GetNativeAgentConfigurationDto {
|
|
@@ -30,33 +32,42 @@ export class GetNativeAgentConfigurationDto {
|
|
|
|
|
|
export class SaveNativeAgentConfigurationDto {
|
|
|
@IsNumber()
|
|
|
- agentId: number
|
|
|
+ @IsOptional()
|
|
|
+ agentId?: number
|
|
|
|
|
|
@IsString()
|
|
|
@IsNotEmpty({ message: 'name不能为空' })
|
|
|
name: string
|
|
|
|
|
|
@IsString()
|
|
|
- displayName: string
|
|
|
+ @IsOptional()
|
|
|
+ displayName?: string
|
|
|
|
|
|
@IsNumber()
|
|
|
- type: number
|
|
|
+ @IsOptional()
|
|
|
+ type?: number
|
|
|
|
|
|
@IsString()
|
|
|
- executionModel: string
|
|
|
+ @IsOptional()
|
|
|
+ executionModel?: string
|
|
|
|
|
|
@IsString()
|
|
|
- systemPrompt: string
|
|
|
+ @IsOptional()
|
|
|
+ systemPrompt?: string
|
|
|
|
|
|
@IsString()
|
|
|
- taskPrompt: string
|
|
|
+ @IsOptional()
|
|
|
+ taskPrompt?: string
|
|
|
|
|
|
@IsArray()
|
|
|
- tools: string[]
|
|
|
+ @IsOptional()
|
|
|
+ tools?: string[]
|
|
|
|
|
|
@IsArray()
|
|
|
- subAgents: number[]
|
|
|
+ @IsOptional()
|
|
|
+ subAgents?: number[]
|
|
|
|
|
|
- @IsObject()
|
|
|
- extraParams: Record<string, any>
|
|
|
+ @IsString()
|
|
|
+ @IsOptional()
|
|
|
+ extraParams?: string
|
|
|
}
|