Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x | import {
IsString,
IsOptional,
IsBoolean,
IsArray,
IsUUID,
} from 'class-validator';
import { ApiPropertyOptional } from '@nestjs/swagger';
export class UpdateSubAgentDto {
@ApiPropertyOptional({ description: 'Name of the sub-agent' })
@IsOptional()
@IsString()
name?: string;
@ApiPropertyOptional({
description: 'Description of what this sub-agent does',
})
@IsOptional()
@IsString()
description?: string;
@ApiPropertyOptional({ description: 'UUID of system prompt', format: 'uuid' })
@IsOptional()
@IsUUID()
system_prompt_id?: string;
@ApiPropertyOptional({
description: 'UUID of context template for initial prompts',
format: 'uuid',
})
@IsOptional()
@IsUUID()
context_template_id?: string;
@ApiPropertyOptional({
description: 'UUID of context template for follow-up prompts',
format: 'uuid',
})
@IsOptional()
@IsUUID()
followup_context_template_id?: string;
@ApiPropertyOptional({
description: 'Array of tool names this sub-agent can use',
})
@IsOptional()
@IsArray()
@IsString({ each: true })
enabled_tools?: string[];
@ApiPropertyOptional({
description:
'Enabled MCP tools: null (no MCP tools), "all", or array of serverName__toolName identifiers',
})
@IsOptional()
enabled_mcp_tools?: string[] | 'all';
@ApiPropertyOptional({ description: 'Whether this sub-agent is active' })
@IsOptional()
@IsBoolean()
is_active?: boolean;
@ApiPropertyOptional({
description: 'Model ID to use',
example: 'gemini-2.0-flash',
})
@IsOptional()
@IsString()
model_id?: string;
}
|