GetEvaluator
Retrieves the details of an evaluator.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
agentloop:GetEvaluator |
get |
*Evaluator
|
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 |
| 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.