File tree Expand file tree Collapse file tree 2 files changed +53
-0
lines changed
Foundry/openai-evaluations
data-plane/Azure.AI.Projects/openapi3/2025-11-15-preview Expand file tree Collapse file tree 2 files changed +53
-0
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,9 @@ model CreateEvalRequest is OpenAI.CreateEvalRequest {
165165union ItemGenerationParamsType {
166166 string ,
167167
168+ /** Parameters for red team. */
169+ redTeam : "red_team" ,
170+
168171 /** The ResponseRetrieval item generation parameters. */
169172 responseRetrieval : "response_retrieval" ,
170173
@@ -175,6 +178,19 @@ union ItemGenerationParamsType {
175178 redTeamTaxonomy : "red_team_taxonomy" ,
176179}
177180
181+ @ added (Versions .v2025_11_15_preview )
182+ @ removed (Versions .v1 )
183+ model RedTeamItemGenerationParams extends ItemGenerationParams {
184+ /** The type of item generation parameters. */
185+ type : ItemGenerationParamsType .redTeam ;
186+
187+ /** The collection of attack strategies to be used. */
188+ attack_strategies : AttackStrategy [];
189+
190+ /** The number of turns allowed in the game. */
191+ num_turns : int32 = 20 ;
192+ }
193+
178194/** Represents the parameters for red team seed prompts item generation. */
179195@ added (Versions .v2025_11_15_preview )
180196@ removed (Versions .v1 )
Original file line number Diff line number Diff line change 1281612816 "discriminator": {
1281712817 "propertyName": "type",
1281812818 "mapping": {
12819+ "red_team": "#/components/schemas/RedTeamItemGenerationParams",
1281912820 "red_team_seed_prompts": "#/components/schemas/RedTeamSeedPromptsItemGenerationParams",
1282012821 "red_team_taxonomy": "#/components/schemas/RedTeamTaxonomyItemGenerationParams"
1282112822 }
1283012831 {
1283112832 "type": "string",
1283212833 "enum": [
12834+ "red_team",
1283312835 "response_retrieval",
1283412836 "red_team_seed_prompts",
1283512837 "red_team_taxonomy"
2403024032 }
2403124033 ]
2403224034 },
24035+ "RedTeamItemGenerationParams": {
24036+ "type": "object",
24037+ "required": [
24038+ "type",
24039+ "attack_strategies",
24040+ "num_turns"
24041+ ],
24042+ "properties": {
24043+ "type": {
24044+ "type": "string",
24045+ "enum": [
24046+ "red_team"
24047+ ],
24048+ "description": "The type of item generation parameters."
24049+ },
24050+ "attack_strategies": {
24051+ "type": "array",
24052+ "items": {
24053+ "$ref": "#/components/schemas/AttackStrategy"
24054+ },
24055+ "description": "The collection of attack strategies to be used."
24056+ },
24057+ "num_turns": {
24058+ "type": "integer",
24059+ "format": "int32",
24060+ "description": "The number of turns allowed in the game.",
24061+ "default": 20
24062+ }
24063+ },
24064+ "allOf": [
24065+ {
24066+ "$ref": "#/components/schemas/ItemGenerationParams"
24067+ }
24068+ ]
24069+ },
2403324070 "RedTeamSeedPromptsItemGenerationParams": {
2403424071 "type": "object",
2403524072 "required": [
You can’t perform that action at this time.
0 commit comments