All checks were successful
ci/woodpecker/push/ci Pipeline was successful
Co-authored-by: Jason Woltje <jason@diversecanvas.com> Co-committed-by: Jason Woltje <jason@diversecanvas.com>
44 lines
675 B
TypeScript
44 lines
675 B
TypeScript
import { IsString, IsBoolean, IsOptional, IsArray, MinLength } from "class-validator";
|
|
|
|
export class CreateAgentTemplateDto {
|
|
@IsString()
|
|
@MinLength(1)
|
|
name!: string;
|
|
|
|
@IsString()
|
|
@MinLength(1)
|
|
displayName!: string;
|
|
|
|
@IsString()
|
|
@MinLength(1)
|
|
role!: string;
|
|
|
|
@IsString()
|
|
@MinLength(1)
|
|
personality!: string;
|
|
|
|
@IsString()
|
|
@MinLength(1)
|
|
primaryModel!: string;
|
|
|
|
@IsArray()
|
|
@IsOptional()
|
|
fallbackModels?: string[];
|
|
|
|
@IsArray()
|
|
@IsOptional()
|
|
toolPermissions?: string[];
|
|
|
|
@IsString()
|
|
@IsOptional()
|
|
discordChannel?: string;
|
|
|
|
@IsBoolean()
|
|
@IsOptional()
|
|
isActive?: boolean;
|
|
|
|
@IsBoolean()
|
|
@IsOptional()
|
|
isDefault?: boolean;
|
|
}
|