ListExperimentRuns

Updated at:

Queries a list of experiment runs.

Operation description

Calls the ListExperimentRuns operation to query the experiment execution records of the current account in a specified AgentSpace. You can filter records by status, dataset, plan name, and experiment name, and paginate results by using page and pageSize.

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:ListExperimentRuns

list

*Workspace

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

None None

Request syntax

GET /api/v1/experimentruns/{agentSpace}/records HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

agentSpace

string

No

The name of the AgentSpace.

al-playground-cn-hongkong

Request parameters

Parameter

Type

Required

Description

Example

page

integer

No

The page number, starting from 0. Default value: 0.

0

pageSize

integer

No

The number of entries per page. Default value: 20.

10

status

string

No

Filters the results by status.

Valid values:

  • running :

    running

  • pending :

    pending

  • cancelled :

    cancelled

  • evaluating :

    evaluating

  • completed :

    completed

  • failed :

    failed

  • timeout :

    timeout

evaluating

datasetId

string

No

Filters the results by exact dataset ID.

arms_customer_agent_level1

planName

string

No

Filters the results by using a fuzzy match on the experiment plan name.

arms_agent_experiment

experimentName

string

No

Filters the results by using a fuzzy match on the name in the experiment configuration.

experimentA

maxResults

integer

No

Optional. For pagination, use page and pageSize.

20

nextToken

string

No

Optional. For pagination, use page and pageSize.

eyJwYWdlIjoxfQ==

For pagination, use page (starting from 0) and pageSize.

Response elements

Element

Type

Description

Example

object

The experiment run list response.

requestId

string

The request ID.

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

total

integer

The total number of records.

100

page

integer

The current page number.

0

pageSize

integer

The number of entries per page.

10

records

array

The list of experiment runs.

[{"recordId": "exp-run-f6d419b0ed3d43a7b585948a55efc07b", "experimentPlanId": "exp-plan-0242d983f5d340fd8479cf2c19eb279e", "recordName": "arms_agent_experiment 2026/07/22 20:02:55", "planName": "arms_agent_experiment", "status": "evaluating", "progress": 100.0, "totalTasks": 40, "completedTasks": 40, "failedTasks": 0, "dataSourceType": "dataset-full", "datasetId": "arms_customer_agent_level1", "modelNames": ["qwen3.7-plus", "qwen3.7-max"], "evaluationTaskId": "eval-task-6bec93bfa03740dd86ce2bf1496e65fb", "executedAt": 1784721775379, "completedAt": 1784721811392}, {"recordId": "a5397261-6e6d-4e45-bf52-feb8686f7524", "experimentPlanId": "exp-plan-e95bff54685a4ae29ff3a834c1008a71", "recordName": "rca_benchmark_eval_experiment 2026/07/22 19:23:59", "planName": "rca_benchmark_eval_experiment", "status": "completed", "progress": 100.0, "totalTasks": 20, "completedTasks": 20, "failedTasks": 0, "dataSourceType": "dataset-full", "datasetId": "rca_benckmark_eval", "modelNames": [], "evaluationTaskId": "eval-task-b1395b3bdf3e4dc994d7dcde7a66da45", "executedAt": 1784719439255, "completedAt": 1784719989371}]

ExperimentRecord

The experiment run object.

maxResults

integer

The maximum number of returned entries.

20

nextToken

string

Optional.

eyJwYWdlIjoxfQ==

Response example

{
  "total": 100,
  "page": 0,
  "pageSize": 10,
  "records": [
    {
      "recordId": "exp-run-f6d419b0ed3d43a7b585948a55efc07b",
      "experimentPlanId": "exp-plan-0242d983f5d340fd8479cf2c19eb279e",
      "recordName": "arms_agent_experiment 2026/07/22 20:02:55",
      "planName": "arms_agent_experiment",
      "status": "evaluating",
      "progress": 100.0,
      "totalTasks": 40,
      "completedTasks": 40,
      "failedTasks": 0,
      "dataSourceType": "dataset-full",
      "datasetId": "arms_customer_agent_level1",
      "modelNames": [
        "qwen3.7-plus",
        "qwen3.7-max"
      ],
      "evaluationTaskId": "eval-task-6bec93bfa03740dd86ce2bf1496e65fb",
      "executedAt": 1784721775379,
      "completedAt": 1784721811392
    },
    {
      "recordId": "a5397261-6e6d-4e45-bf52-feb8686f7524",
      "experimentPlanId": "exp-plan-e95bff54685a4ae29ff3a834c1008a71",
      "recordName": "rca_benchmark_eval_experiment 2026/07/22 19:23:59",
      "planName": "rca_benchmark_eval_experiment",
      "status": "completed",
      "progress": 100.0,
      "totalTasks": 20,
      "completedTasks": 20,
      "failedTasks": 0,
      "dataSourceType": "dataset-full",
      "datasetId": "rca_benckmark_eval",
      "modelNames": [],
      "evaluationTaskId": "eval-task-b1395b3bdf3e4dc994d7dcde7a66da45",
      "executedAt": 1784719439255,
      "completedAt": 1784719989371
    },
    {
      "recordId": "exp-run-5224ae07549b490e9eb45508bb5d86be",
      "experimentPlanId": "b7f0ad3d-3765-446a-a744-ab64ab8bf386",
      "recordName": "arms_customer_agent_plan 2026/07/22 09:00:01",
      "planName": "arms_customer_agent_plan",
      "status": "completed",
      "progress": 0.0,
      "totalTasks": 1,
      "completedTasks": 0,
      "failedTasks": 1,
      "dataSourceType": "dataset-partial",
      "datasetId": "arms_customer_agent_level1",
      "querySql": "where \"input\" LIKE '%probe%'",
      "selectedItemIds": [
        "019ef4d5-a0f0-7114-832d-5542d771cd8c"
      ],
      "modelNames": [],
      "evaluationTaskId": "eval-task-a12e74ec6a6d49bc820541e7f1a9a3b6",
      "executedAt": 1784682001995,
      "completedAt": 1784682275325
    }
  ]
}

Examples

Success response

JSON format

{
  "requestId": "3FE4CD1E-FF41-56BE-B590-7A021D9C1524",
  "total": 100,
  "page": 0,
  "pageSize": 10,
  "records": [
    {
      "completedAt": 1767229200000,
      "completedTasks": 5,
      "dataSourceType": "dataset-full",
      "datasetId": "dataset-123456",
      "datasetProject": "agentspace-project",
      "errorMessage": "Model invocation timeout",
      "evaluationTaskId": "eval-task-6bec93bfa03740dd86ce2bf1496e65fb",
      "evaluators": [
        {
          "config": {
            "version": "1.0.0"
          },
          "evaluatorRef": "Builtin.agent_task_completion",
          "filters": {
            "query": "serviceName='checkout-service'"
          },
          "name": "agent_task_completion",
          "resultName": "agent_task_completion",
          "resultType": "score",
          "type": "AGENT",
          "variableExtractorMapping": {
            "key": {
              "expression": "$.order.expected",
              "originField": "trace.output",
              "type": "jsonpath"
            }
          },
          "variableMapping": {
            "key": "trace.input"
          }
        }
      ],
      "executedAt": 1767225600000,
      "experimentConfig": [
        {
          "endpointConnectorId": "",
          "label": "A",
          "modelName": "qwen-max",
          "modelParameters": {
            "temperature": 0.7,
            "maxTokens": 1024,
            "topP": 0.9,
            "topK": 50,
            "frequencyPenalty": 0.2,
            "presencePenalty": 0.1,
            "stopSequences": [
              "END"
            ],
            "responseFormat": {
              "type": "json_object",
              "jsonSchema": {
                "name": "answer",
                "strict": true,
                "schema": "{\"type\":\"object\",\"properties\":{\"answer\":{\"type\":\"string\"}},\"required\":[\"answer\"]}"
              }
            },
            "repetitionPenalty": 1.05,
            "seed": 1234,
            "enableThinking": true,
            "maxCompletionTokens": 4096,
            "thinkingBudget": 2048,
            "reasoningEffort": "low",
            "enableCacheControl": true,
            "extraBody": "{\"enable_search\":false}"
          },
          "modelProvider": "dashscope",
          "name": "baseline",
          "promptTemplate": [
            {
              "content": "Please answer: {{question}}",
              "role": "user"
            }
          ],
          "requestBodyTemplate": "{\"input\":\"{{question}}\"}",
          "requestHeaderTemplate": "{\"Content-Type: application/json\" }",
          "requestMethod": "POST"
        }
      ],
      "experimentPlanId": "exp-plan-0242d983f5d340fd8479cf2c19eb279e",
      "failedTasks": 1,
      "input": {
        "test": "test",
        "test2": 1
      },
      "modelNames": [
        "qwen-max"
      ],
      "planName": "customer-service-eval",
      "progress": 0.5,
      "querySql": "level > 2",
      "recordId": "exp-run-f6d419b0ed3d43a7b585948a55efc07b",
      "recordName": "baseline-run",
      "selectedItemIds": [
        "item-123456"
      ],
      "status": "running",
      "totalTasks": 10
    }
  ],
  "maxResults": 20,
  "nextToken": "eyJwYWdlIjoxfQ=="
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.