GetExperimentRun
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
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
agentloop:GetExperimentRun |
get |
*Workspace
|
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.