ListEvaluators

Updated at:

Queries the list of evaluators.

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

list

*Evaluator

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

None None

Request syntax

GET /api/v1/evaluators HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

agentSpace

string

Yes

The AgentSpace name.

prod-agentspace

type

string

No

The evaluator type filter.

Valid values:

  • AGENT :

    AGENT

  • CODE :

    CODE

  • LLM :

    LLM

AGENT

name

string

No

The fuzzy search condition for the evaluator name.

trace_task_completion

source

string

No

The evaluator source filter.

Valid values:

  • custom :

    custom

  • builtin :

    builtin

custom

maxResults

integer

No

The number of entries to return per page. Default value: 20. Maximum value: 100.

20

nextToken

string

No

The pagination token for the next page.

eyJsYXN0SWQiOjEyM30=

Response elements

Element

Type

Description

Example

object

Schema of Response

requestId

string

The request ID.

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

total

integer

The total number of evaluators that meet the conditions.

12

nextToken

string

The pagination token for the next page.

eyJsYXN0SWQiOjEzM30=

maxResults

integer

The number of entries per page used in this request.

20

evaluators

array<object>

The list of evaluator summaries.

[{"name":"trace_task_completion","type":"AGENT","latestVersion":"1.0.0"}]

array<object>

The configuration object of a single evaluator.

{"evaluatorRef":"Builtin.agent_task_completion"}

name

string

The evaluator name.

trace_task_completion

displayName

string

The display name.

Workflow task completion rate

metricName

string

The metric name.

agent_task_completion

type

string

The evaluator type.

Valid values:

  • AGENT :

    AGENT

  • CODE :

    CODE

  • LLM :

    LLM

AGENT

description

string

The evaluator description.

Determines whether the agent has completed the user task

latestVersion

string

The latest version number.

1.0.0

status

string

The status of the latest evaluator version. DRAFT indicates a draft, PUBLISHED indicates published, and OFFLINE indicates offline.

PUBLISHED

selectable

boolean

Specifies whether the evaluator has a default version that can be selected for new evaluation tasks or experiment plans.

true

properties

object

The evaluator properties.

{"agentEvaluatorMode":"raw_prompt"}

annotations

array

The list of annotation tags.

["__en"]

string

The annotation tag.

__en

createdAt

integer

The creation time. The value is a UNIX timestamp in seconds.

1782816000

updatedAt

integer

The update time. The value is a UNIX timestamp in seconds.

1782816600

Examples

Success response

JSON format

{
  "requestId": "3FE4CD1E-FF41-56BE-B590-7A021D9C1524",
  "total": 12,
  "nextToken": "eyJsYXN0SWQiOjEzM30=",
  "maxResults": 20,
  "evaluators": [
    {
      "name": "trace_task_completion",
      "displayName": "Pipeline task completion rate",
      "metricName": "agent_task_completion",
      "type": "AGENT",
      "description": "Determines whether the agent completes the user task",
      "latestVersion": "1.0.0",
      "status": "PUBLISHED",
      "selectable": true,
      "properties": {
        "agentEvaluatorMode": "raw_prompt"
      },
      "annotations": [
        "__en"
      ],
      "createdAt": 1782816000,
      "updatedAt": 1782816600
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.