GetExperimentRun

Updated at:

Queries the details of an experiment run.

Operation description

Calls the GetExperimentRun operation to query the details of an experiment run, including the status, progress, configuration snapshot, and associated evaluation task ID.

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

get

*Workspace

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

None None

Request syntax

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

Path Parameters

Parameter

Type

Required

Description

Example

agentSpace

string

No

The name of the AgentSpace.

al-playground-cn-hongkong

recordId

string

No

The ID of the experiment run.

exp-run-f6d419b0ed3d43a7b585948a55efc07b

Request parameters

Parameter

Type

Required

Description

Example

No parameters required.

Specify the target agentSpace and recordId.

Response elements

Element

Type

Description

Example

object

The response for the experiment run details.

requestId

string

The request ID.

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

regionId

string

The region ID.

cn-hangzhou

record ExperimentRecord

The details of the experiment run. Fields with null values are not returned.

{"recordId": "exp-run-f6d419b0ed3d43a7b585948a55efc07b", "experimentPlanId": "exp-plan-0242d983f5d340fd8479cf2c19eb279e", "recordName": "arms_agent_experiment 2026/07/22 20:02:55", "planName": "arms_agent_experiment", "status": "evaluating", "totalTasks": 40, "completedTasks": 40, "failedTasks": 0, "progress": 100.0, "executedAt": 1784721775379, "completedAt": 1784721811392, "dataSourceType": "dataset-full", "datasetId": "arms_customer_agent_level1", "modelNames": ["qwen3.7-plus", "qwen3.7-max"], "evaluationTaskId": "eval-task-6bec93bfa03740dd86ce2bf1496e65fb"}

The value of progress ranges from 0 to 100. If the evaluation is still in progress after the experiment is completed, the status may be evaluating.

Online experiment response example

{
  "record": {
    "recordId": "exp-run-f6d419b0ed3d43a7b585948a55efc07b",
    "experimentPlanId": "exp-plan-0242d983f5d340fd8479cf2c19eb279e",
    "recordName": "arms_agent_experiment 2026/07/22 20:02:55",
    "planName": "arms_agent_experiment",
    "status": "evaluating",
    "totalTasks": 40,
    "completedTasks": 40,
    "failedTasks": 0,
    "progress": 100.0,
    "executedAt": 1784721775379,
    "completedAt": 1784721811392,
    "dataSourceType": "dataset-full",
    "datasetId": "arms_customer_agent_level1",
    "modelNames": [
      "qwen3.7-plus",
      "qwen3.7-max"
    ],
    "evaluationTaskId": "eval-task-6bec93bfa03740dd86ce2bf1496e65fb"
  }
}

Offline experiment response example

{
  "record": {
    "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",
    "totalTasks": 20,
    "completedTasks": 20,
    "failedTasks": 0,
    "progress": 100.0,
    "executedAt": 1784719439255,
    "completedAt": 1784719989371,
    "dataSourceType": "dataset-full",
    "datasetId": "rca_benckmark_eval",
    "modelNames": [],
    "evaluationTaskId": "eval-task-b1395b3bdf3e4dc994d7dcde7a66da45",
    "experimentConfig": [
      {
        "name": "experimentA",
        "promptTemplate": []
      }
    ]
  }
}

Examples

Success response

JSON format

{
  "requestId": "3FE4CD1E-FF41-56BE-B590-7A021D9C1524",
  "regionId": "cn-hangzhou",
  "record": {
    "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
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.