ListExperimentPlans

Updated at:

Queries the list of experiment plans.

Operation description

Calls ListExperimentPlans to query the list of experiment plans under a specified AgentSpace for the current account. This operation supports fuzzy match by plan name, filtering by status, and pagination by using offset and limit.

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

list

*Workspace

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

None None

Request syntax

GET /api/v1/experiments/{agentSpace}/plans 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

planName

string

No

The plan name used for fuzzy match.

arms_agent

status

string

No

The exact status used for filtering.

Valid values:

  • running :

    running

  • stopped :

    stopped

  • pending :

    pending

pending

offset

integer

No

The offset. Default value: 0.

0

limit

integer

No

The maximum number of entries to return. Default value: 20.

20

maxResults

integer

No

Optional. For pagination, use offset and limit instead.

20

nextToken

string

No

Optional. For pagination, use offset and limit instead.

eyJsYXN0SWQiOjEyM30=

For pagination, use offset and limit. The results are sorted in descending order of creation time.

Response elements

Element

Type

Description

Example

object

The response for the experiment plan list.

maxResults

integer

The maximum number of returned entries.

20

nextToken

string

The token for the next page.

eyJsYXN0SWQiOjEwMX0=

page

integer

The page number information.

0

pageSize

integer

The number of entries per page.

20

plans

array

The list of experiment plan summaries.

[{"planId": "exp-plan-e95bff54685a4ae29ff3a834c1008a71", "planName": "rca_benchmark_eval_experiment", "experimentType": "offline", "description": "", "status": "pending", "datasetId": "rca_benckmark_eval", "querySql": "", "experimentCount": 5, "createdAt": 1784612365000, "updatedAt": 1784619562000}, {"planId": "exp-plan-0242d983f5d340fd8479cf2c19eb279e", "planName": "arms_agent_experiment", "experimentType": "online", "description": "", "status": "stopped", "datasetId": "arms_customer_agent_level1", "querySql": "", "experimentCount": 4, "createdAt": 1784257858000, "updatedAt": 1784721811000}, {"planId": "b7f0ad3d-3765-446a-a744-ab64ab8bf386", "planName": "arms_customer_agent_plan", "experimentType": "offline", "description": "", "status": "stopped", "datasetId": "arms_customer_agent_level1", "querySql": "where \"input\" LIKE '%probe%'", "experimentCount": 65, "createdAt": 1782310430000, "updatedAt": 1784692254000}]

ExperimentPlanData

The summary object of a single experiment plan.

requestId

string

The request ID.

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

total

integer

The total number of records that meet the conditions.

6

The list does not return the complete experiments and datasetProject fields. To obtain the complete configuration, call GetExperimentPlan.

{
  "total": 6,
  "plans": [
    {
      "planId": "exp-plan-e95bff54685a4ae29ff3a834c1008a71",
      "planName": "rca_benchmark_eval_experiment",
      "experimentType": "offline",
      "description": "",
      "status": "pending",
      "datasetId": "rca_benckmark_eval",
      "querySql": "",
      "experimentCount": 5,
      "createdAt": 1784612365000,
      "updatedAt": 1784619562000
    },
    {
      "planId": "exp-plan-0242d983f5d340fd8479cf2c19eb279e",
      "planName": "arms_agent_experiment",
      "experimentType": "online",
      "description": "",
      "status": "stopped",
      "datasetId": "arms_customer_agent_level1",
      "querySql": "",
      "experimentCount": 4,
      "createdAt": 1784257858000,
      "updatedAt": 1784721811000
    },
    {
      "planId": "b7f0ad3d-3765-446a-a744-ab64ab8bf386",
      "planName": "arms_customer_agent_plan",
      "experimentType": "offline",
      "description": "",
      "status": "stopped",
      "datasetId": "arms_customer_agent_level1",
      "querySql": "where \"input\" LIKE '%probe%'",
      "experimentCount": 65,
      "createdAt": 1782310430000,
      "updatedAt": 1784692254000
    }
  ]
}

Examples

Success response

JSON format

{
  "maxResults": 20,
  "nextToken": "eyJsYXN0SWQiOjEwMX0=",
  "page": 0,
  "pageSize": 20,
  "plans": [
    {
      "createdAt": 1767225600000,
      "datasetId": "dataset-123456",
      "description": "Customer service Q&A offline evaluation plan",
      "experimentCount": 3,
      "experimentType": "offline",
      "pipelineName": "trace-process-pipeline",
      "planId": "exp-plan-e95bff54685a4ae29ff3a834c1008a71",
      "planName": "customer-service-eval",
      "querySql": "level > 2",
      "status": "pending",
      "updatedAt": 1767229200000
    }
  ],
  "requestId": "3FE4CD1E-FF41-56BE-B590-7A021D9C1524",
  "total": 6
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.