GetEvaluator

Updated at:

Retrieves the details of an evaluator.

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

get

*Evaluator

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

None None

Request syntax

GET /api/v1/evaluators/{agentSpace}/{name} HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

agentSpace

string

Yes

The AgentSpace name.

prod-agentspace

name

string

Yes

The evaluator name.

trace_task_completion

Request parameters

Parameter

Type

Required

Description

Example

version

string

No

The target version number. If not specified, the latest version is used.

1.0.0

Response elements

Element

Type

Description

Example

object

Schema of Response

requestId

string

The request ID.

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

evaluator

object

The evaluator details.

{"name":"trace_task_completion","type":"AGENT","currentVersion":"1.0.0"}

agentSpace

string

The AgentSpace name.

prod-agentspace

name

string

The evaluator name.

trace_task_completion

displayName

string

The display name.

Workflow task completion rate

metricName

string

The evaluation 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 completes the user task

latestVersion

string

The latest version number.

1.0.0

currentVersion

string

The currently returned version number.

1.0.0

status

string

The version status. DRAFT indicates a draft, PUBLISHED indicates online, and OFFLINE indicates offline.

PUBLISHED

selectable

boolean

Specifies whether this version can be selected when creating an evaluation task or experiment plan.

true

skills

array<object>

The list of business skill summaries for the queried evaluator version.

[{"skillName":"fact-check","displayName":"Fact-checking","description":"Verify the factual basis in the response","enable":true,"currentVersion":"1770386951147366810"}]

object

The summary of a business skill.

{"skillName":"fact-check","displayName":"Fact-checking","description":"Verify the factual basis in the response","enable":true,"currentVersion":"1770386951147366810"}

skillName

string

The skill name.

fact-check

displayName

string

The display name of the skill.

Fact checking

description

string

The skill purpose description.

Verifies the factual basis in the response

enable

boolean

Specifies whether the skill is enabled in the queried evaluator version.

true

currentVersion

string

The skill revision number used by this evaluator version.

1770386951147366810

config

object

The current version configuration.

{"prompt":"Evaluate the task completion rate"}

properties

object

The evaluator properties.

{"agentEvaluatorMode":"raw_prompt"}

versions

array<object>

The version list.

[{"version":"1.0.0"}]

object

The version object.

{"version":"1.0.0"}

version

string

The version number.

1.0.0

versionDescription

string

The version description.

Initial version

status

string

The version status. DRAFT indicates a draft, PUBLISHED indicates online, and OFFLINE indicates offline.

PUBLISHED

selectable

boolean

Specifies whether this version can be selected when creating an evaluation task or experiment plan.

true

createdAt

integer

The time when the version was created. The value is a UNIX timestamp in seconds.

1782816000

updatedAt

integer

The time when the version was last updated. The value is a UNIX timestamp in seconds.

1795478400

createdAt

integer

The time when the evaluator was created. The value is a UNIX timestamp in seconds.

1782816000

updatedAt

integer

The time when the evaluator was last updated. The value is a UNIX timestamp in seconds.

1782816600

annotations

array

The list of annotation tags.

["__en"]

string

The annotation tag.

__en

Examples

Success response

JSON format

{
  "requestId": "3FE4CD1E-FF41-56BE-B590-7A021D9C1524",
  "evaluator": {
    "agentSpace": "prod-agentspace",
    "name": "trace_task_completion",
    "displayName": "Workflow task completion",
    "metricName": "agent_task_completion",
    "type": "AGENT",
    "description": "Determines whether the agent completed the user task",
    "latestVersion": "1.0.0",
    "currentVersion": "1.0.0",
    "status": "PUBLISHED",
    "selectable": true,
    "skills": [
      {
        "skillName": "fact-check",
        "displayName": "Fact-checking",
        "description": "Verify the factual basis in the response",
        "enable": true,
        "currentVersion": "1770386951147366810"
      }
    ],
    "config": {
      "prompt": "Evaluate the task completion"
    },
    "properties": {
      "agentEvaluatorMode": "raw_prompt"
    },
    "versions": [
      {
        "version": "1.0.0",
        "versionDescription": "Initial version",
        "status": "PUBLISHED",
        "selectable": true,
        "createdAt": 1782816000,
        "updatedAt": 1795478400
      }
    ],
    "createdAt": 1782816000,
    "updatedAt": 1782816600,
    "annotations": [
      "__en"
    ]
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.