diff --git a/specification/ai/Azure.AI.Projects/evaluation-results/routes.tsp b/specification/ai/Azure.AI.Projects/evaluation-results/routes.tsp index 5f0ce1d479d5..65a1e6615e34 100644 --- a/specification/ai/Azure.AI.Projects/evaluation-results/routes.tsp +++ b/specification/ai/Azure.AI.Projects/evaluation-results/routes.tsp @@ -4,6 +4,7 @@ import "@azure-tools/typespec-autorest"; import "@typespec/versioning"; import "@azure-tools/typespec-azure-core"; import "../common/models.tsp"; +import "../evaluations/models.tsp"; import "./models.tsp"; import "../servicepatterns.tsp"; import "../main.tsp"; @@ -57,4 +58,17 @@ interface EvaluationResults AssetCredentialRequest, AssetCredentialResponse >; + + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" + @doc("Get agent evaluation results.") + @route("/runs/agents/{runId}") + @get + getAgentEvaluationResults is Azure.Core.Foundations.Operation< + { + @doc("Agent run id, for agent API v1, it's `[thread_id]:[run_id]`; for agent API v2, it's only the run_id.") + @path + runId: string; + }, + ResourceCreatedResponse + >; } diff --git a/specification/ai/data-plane/Azure.AI.Projects/preview/2025-05-15-preview/azure-ai-projects-1dp.json b/specification/ai/data-plane/Azure.AI.Projects/preview/2025-05-15-preview/azure-ai-projects-1dp.json index 1b4726f4a55d..5bbb8045d3f3 100644 --- a/specification/ai/data-plane/Azure.AI.Projects/preview/2025-05-15-preview/azure-ai-projects-1dp.json +++ b/specification/ai/data-plane/Azure.AI.Projects/preview/2025-05-15-preview/azure-ai-projects-1dp.json @@ -2608,6 +2608,44 @@ } } } + }, + "/runs/agents/{runId}": { + "get": { + "operationId": "EvaluationResults_GetAgentEvaluationResults", + "description": "Get agent evaluation results.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "runId", + "in": "path", + "description": "Agent run id, for agent API v1, it's `[thread_id]:[run_id]`; for agent API v2, it's only the run_id.", + "required": true, + "type": "string" + } + ], + "responses": { + "201": { + "description": "The request has succeeded and a new resource has been created as a result.", + "schema": { + "$ref": "#/definitions/AgentEvaluation" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } + } + } + } + } } }, "definitions": {