feat(ai): support approved agent commands
This commit is contained in:
@@ -28,6 +28,27 @@ class AgentWorkspaceModuleDto {
|
||||
files: AgentWorkspaceFileDto[];
|
||||
}
|
||||
|
||||
class AgentRuntimeLogDto {
|
||||
@IsString()
|
||||
@MinLength(1)
|
||||
@MaxLength(120)
|
||||
moduleName: string;
|
||||
|
||||
@IsString()
|
||||
@MinLength(1)
|
||||
@MaxLength(40)
|
||||
state: string;
|
||||
|
||||
@IsString()
|
||||
@MaxLength(20_000)
|
||||
content: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@MaxLength(500)
|
||||
message?: string;
|
||||
}
|
||||
|
||||
export class CreateAgentPlanDto {
|
||||
@IsUUID()
|
||||
courseId: string;
|
||||
@@ -48,4 +69,11 @@ export class CreateAgentPlanDto {
|
||||
@ValidateNested({ each: true })
|
||||
@Type(() => AgentWorkspaceModuleDto)
|
||||
modules: AgentWorkspaceModuleDto[];
|
||||
|
||||
@IsOptional()
|
||||
@IsArray()
|
||||
@ArrayMaxSize(3)
|
||||
@ValidateNested({ each: true })
|
||||
@Type(() => AgentRuntimeLogDto)
|
||||
runtimeLogs?: AgentRuntimeLogDto[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user