GetEvaluationRun

Updated at:

Retrieves the details of an evaluation run.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

agentloop:GetEvaluationRun

get

*EvaluationTask

acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/evaluationtask/{#TaskId}

None None

Request syntax

GET /api/v1/evaluation-task/{agentSpace}/{taskId}/run/{runId} HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

agentSpace

string

No

The AgentSpace name.

prod-agentspace

taskId

string

No

The evaluation task ID.

eval-task-8b36f2e2b1f94f9c91ce7a4b0f6d9c25

runId

string

No

The evaluation run ID.

eval-run-4fd47f3d7e684e15b1d3d178c6a5b81a

Request parameters

Parameter

Type

Required

Description

Example

No parameters required.

Response elements

Element

Type

Description

Example

object

Schema of Response

qualityMetrics

object

The snapshot of evaluator quality scores and coverage for the current run. This field is empty if the feature is not enabled.

{}

requestId

string

The request ID.

3FE4CD1E-FF41-56BE-B590-7A021D9C1524

runId

string

The run ID.

eval-run-4fd47f3d7e684e15b1d3d178c6a5b81a

runName

string

The run name.

trace_task_completion_eval-backfill

taskId

string

The evaluation task ID.

eval-task-8b36f2e2b1f94f9c91ce7a4b0f6d9c25

runType

string

The run type.

Valid values:

  • continuous :

    continuous

  • backfill :

    backfill

  • continuous_parent :

    continuous_parent

backfill

status

string

The run status.

Valid values:

  • Failed :

    Failed

  • Running :

    Running

  • Completed :

    Completed

  • Terminated :

    Terminated

  • Pending :

    Pending

Running

totalCount

integer

The total number of evaluation items.

100

successCount

integer

The number of successful items.

96

failedCount

integer

The number of failed items.

4

evaluatorProgress

array<object>

The progress list for each evaluator.

[{"evaluatorName":"Builtin.agent_task_completion","totalCount":100,"successCount":96,"failedCount":4}]

object

The progress object for a single evaluator.

{"evaluatorName":"Builtin.agent_task_completion"}

evaluatorName

string

The evaluator name.

Builtin.agent_task_completion

totalCount

integer

The total number of items for the evaluator.

100

successCount

integer

The number of successful items for the evaluator.

96

failedCount

integer

The number of failed items for the evaluator.

4

createdAt

integer

The creation time, specified as a UNIX timestamp in seconds.

1782816000

updatedAt

integer

The update time, specified as a UNIX timestamp in seconds.

1782816600

evaluators

string

The snapshot of the evaluator configuration when the run was created. The value is a JSON string.

[{"evaluatorRef":"Builtin.agent_task_completion"}]

dataStartTime

integer

The start time of the data window for the run, specified as a UNIX timestamp in seconds.

1782816000

dataEndTime

integer

The end time of the data window for the run, specified as a UNIX timestamp in seconds.

1782902400

Examples

Success response

JSON format

{
  "qualityMetrics": {},
  "requestId": "3FE4CD1E-FF41-56BE-B590-7A021D9C1524",
  "runId": "eval-run-4fd47f3d7e684e15b1d3d178c6a5b81a",
  "runName": "trace_task_completion_eval-backfill",
  "taskId": "eval-task-8b36f2e2b1f94f9c91ce7a4b0f6d9c25",
  "runType": "backfill",
  "status": "Running",
  "totalCount": 100,
  "successCount": 96,
  "failedCount": 4,
  "evaluatorProgress": [
    {
      "evaluatorName": "Builtin.agent_task_completion",
      "totalCount": 100,
      "successCount": 96,
      "failedCount": 4
    }
  ],
  "createdAt": 1782816000,
  "updatedAt": 1782816600,
  "evaluators": "[{\"evaluatorRef\":\"Builtin.agent_task_completion\"}]",
  "dataStartTime": 1782816000,
  "dataEndTime": 1782902400
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.