|
1695 | 1695 | "blobReference"
|
1696 | 1696 | ]
|
1697 | 1697 | },
|
| 1698 | + "AssistantMessage": { |
| 1699 | + "type": "object", |
| 1700 | + "description": "A message generated by the assistant in response to previous messages.", |
| 1701 | + "properties": { |
| 1702 | + "content": { |
| 1703 | + "type": "string", |
| 1704 | + "description": "Response content generated by the assistant." |
| 1705 | + } |
| 1706 | + }, |
| 1707 | + "required": [ |
| 1708 | + "content" |
| 1709 | + ], |
| 1710 | + "allOf": [ |
| 1711 | + { |
| 1712 | + "$ref": "#/definitions/Message" |
| 1713 | + } |
| 1714 | + ], |
| 1715 | + "x-ms-discriminator-value": "assistant" |
| 1716 | + }, |
1698 | 1717 | "AttackStrategy": {
|
1699 | 1718 | "type": "string",
|
1700 | 1719 | "description": "Strategies for attacks.",
|
|
2378 | 2397 | ]
|
2379 | 2398 | }
|
2380 | 2399 | },
|
| 2400 | + "DeveloperMessage": { |
| 2401 | + "type": "object", |
| 2402 | + "description": "A message authored by a developer to guide the model during evaluation.", |
| 2403 | + "properties": { |
| 2404 | + "content": { |
| 2405 | + "type": "string", |
| 2406 | + "description": "Content provided by a developer to guide model behavior in an evaluation context." |
| 2407 | + } |
| 2408 | + }, |
| 2409 | + "required": [ |
| 2410 | + "content" |
| 2411 | + ], |
| 2412 | + "allOf": [ |
| 2413 | + { |
| 2414 | + "$ref": "#/definitions/Message" |
| 2415 | + } |
| 2416 | + ], |
| 2417 | + "x-ms-discriminator-value": "developer" |
| 2418 | + }, |
2381 | 2419 | "EmbeddingConfiguration": {
|
2382 | 2420 | "type": "object",
|
2383 | 2421 | "description": "Embedding configuration class",
|
|
2459 | 2497 | "additionalProperties": {
|
2460 | 2498 | "$ref": "#/definitions/EvaluatorConfiguration"
|
2461 | 2499 | }
|
| 2500 | + }, |
| 2501 | + "target": { |
| 2502 | + "$ref": "#/definitions/EvaluationTarget", |
| 2503 | + "description": "Specifies the type and configuration of the entity used for this evaluation." |
2462 | 2504 | }
|
2463 | 2505 | },
|
2464 | 2506 | "required": [
|
|
2467 | 2509 | "evaluators"
|
2468 | 2510 | ]
|
2469 | 2511 | },
|
| 2512 | + "EvaluationTarget": { |
| 2513 | + "type": "object", |
| 2514 | + "description": "Abstract base model for defining evaluation targets.", |
| 2515 | + "properties": { |
| 2516 | + "type": { |
| 2517 | + "$ref": "#/definitions/EvaluationTargetType", |
| 2518 | + "description": "Discriminator that defines the type of the evaluation target." |
| 2519 | + } |
| 2520 | + }, |
| 2521 | + "discriminator": "type", |
| 2522 | + "required": [ |
| 2523 | + "type" |
| 2524 | + ] |
| 2525 | + }, |
| 2526 | + "EvaluationTargetType": { |
| 2527 | + "type": "string", |
| 2528 | + "description": "Allowed types of evaluation targets.", |
| 2529 | + "enum": [ |
| 2530 | + "modelResponseGeneration" |
| 2531 | + ], |
| 2532 | + "x-ms-enum": { |
| 2533 | + "name": "EvaluationTargetType", |
| 2534 | + "modelAsString": true, |
| 2535 | + "values": [ |
| 2536 | + { |
| 2537 | + "name": "modelResponseGeneration", |
| 2538 | + "value": "modelResponseGeneration", |
| 2539 | + "description": "Evaluation target that uses a model for response generation." |
| 2540 | + } |
| 2541 | + ] |
| 2542 | + } |
| 2543 | + }, |
2470 | 2544 | "EvaluatorConfiguration": {
|
2471 | 2545 | "type": "object",
|
2472 | 2546 | "description": "Evaluator Configuration",
|
|
2706 | 2780 | ],
|
2707 | 2781 | "x-ms-discriminator-value": "ManagedAzureSearch"
|
2708 | 2782 | },
|
| 2783 | + "Message": { |
| 2784 | + "type": "object", |
| 2785 | + "description": "Abstract base model representing a single message in a conversation.", |
| 2786 | + "properties": { |
| 2787 | + "role": { |
| 2788 | + "type": "string", |
| 2789 | + "description": "The role of the message author. Known values: 'system', 'assistant', 'developer', 'user'.", |
| 2790 | + "enum": [ |
| 2791 | + "system", |
| 2792 | + "assistant", |
| 2793 | + "developer", |
| 2794 | + "user" |
| 2795 | + ], |
| 2796 | + "x-ms-enum": { |
| 2797 | + "modelAsString": true |
| 2798 | + } |
| 2799 | + } |
| 2800 | + }, |
| 2801 | + "discriminator": "role", |
| 2802 | + "required": [ |
| 2803 | + "role" |
| 2804 | + ] |
| 2805 | + }, |
2709 | 2806 | "ModelDeployment": {
|
2710 | 2807 | "type": "object",
|
2711 | 2808 | "description": "Model Deployment Definition",
|
|
3181 | 3278 | "tier"
|
3182 | 3279 | ]
|
3183 | 3280 | },
|
| 3281 | + "SystemMessage": { |
| 3282 | + "type": "object", |
| 3283 | + "description": "A message authored by the system to guide model behavior.", |
| 3284 | + "properties": { |
| 3285 | + "content": { |
| 3286 | + "type": "string", |
| 3287 | + "description": "Plain text instructions provided by the system to steer model behavior." |
| 3288 | + } |
| 3289 | + }, |
| 3290 | + "required": [ |
| 3291 | + "content" |
| 3292 | + ], |
| 3293 | + "allOf": [ |
| 3294 | + { |
| 3295 | + "$ref": "#/definitions/Message" |
| 3296 | + } |
| 3297 | + ], |
| 3298 | + "x-ms-discriminator-value": "system" |
| 3299 | + }, |
3184 | 3300 | "TargetConfig": {
|
3185 | 3301 | "type": "object",
|
3186 | 3302 | "description": "Abstract class for target configuration.",
|
|
3194 | 3310 | "required": [
|
3195 | 3311 | "type"
|
3196 | 3312 | ]
|
| 3313 | + }, |
| 3314 | + "UserMessage": { |
| 3315 | + "type": "object", |
| 3316 | + "description": "A message authored by the end user as input to the model.", |
| 3317 | + "properties": { |
| 3318 | + "content": { |
| 3319 | + "type": "string", |
| 3320 | + "description": "Input content or question provided by the end user." |
| 3321 | + } |
| 3322 | + }, |
| 3323 | + "required": [ |
| 3324 | + "content" |
| 3325 | + ], |
| 3326 | + "allOf": [ |
| 3327 | + { |
| 3328 | + "$ref": "#/definitions/Message" |
| 3329 | + } |
| 3330 | + ], |
| 3331 | + "x-ms-discriminator-value": "user" |
| 3332 | + }, |
| 3333 | + "modelResponseGenerationTarget": { |
| 3334 | + "type": "object", |
| 3335 | + "description": "Evaluation target for generating responses using a given model and dataset.", |
| 3336 | + "properties": { |
| 3337 | + "baseMessages": { |
| 3338 | + "type": "array", |
| 3339 | + "description": "A list of messages comprising the conversation so far.", |
| 3340 | + "items": { |
| 3341 | + "$ref": "#/definitions/Message" |
| 3342 | + } |
| 3343 | + }, |
| 3344 | + "modelDeploymentName": { |
| 3345 | + "type": "string", |
| 3346 | + "description": "The model deployment to be evaluated. Accepts either the deployment name alone or with the connection name as '{connectionName}/modelDeploymentName'." |
| 3347 | + }, |
| 3348 | + "modelParams": { |
| 3349 | + "type": "object", |
| 3350 | + "description": "Optional parameters passed to the model for evaluation.", |
| 3351 | + "additionalProperties": {} |
| 3352 | + } |
| 3353 | + }, |
| 3354 | + "required": [ |
| 3355 | + "baseMessages", |
| 3356 | + "modelDeploymentName", |
| 3357 | + "modelParams" |
| 3358 | + ], |
| 3359 | + "allOf": [ |
| 3360 | + { |
| 3361 | + "$ref": "#/definitions/EvaluationTarget" |
| 3362 | + } |
| 3363 | + ], |
| 3364 | + "x-ms-discriminator-value": "modelResponseGeneration" |
3197 | 3365 | }
|
3198 | 3366 | },
|
3199 | 3367 | "parameters": {
|
|
0 commit comments