List Evaluators¶
GET /api/v1/agent_eval/evaluator/list
Overview¶
Query custom evaluators in the current workspace with pagination.
Prerequisites and Usage Steps¶
Use the DF-API-KEY of the target workspace. Even for read-only access, the Agent Monitoring Application Configuration Management permission is required. The API operates only on custom evaluators in the current workspace and does not expose system built-in evaluators. Pass parameters only in the corresponding Query, path, or JSON body. Do not use body parameters in the URL. Pagination is sorted in descending order by createAt and internal sequence number. The list returns complete evaluation configurations. An empty content.data array indicates no results on this page; pagination information is in the top-level pageInfo. First retrieve content.data[].uuid, then call Details. Pagination is not a snapshot; creations or deletions during pagination may change paging results. Read operations do not initialize built-in templates.
Request Headers¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| DF-API-KEY | string | Y | OpenAPI credential for the target workspace. Both reads and writes require the Agent Monitoring Application Configuration Management permission; the associated role must be owner, wsAdmin, or general. Example: <DF-API-KEY>How to obtain or enter: Create and authorize it in API Key Management of the target workspace, then pass it using the DF-API-KEY request header. Do not put a real key in URLs or examples. |
Query Request Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| pageIndex | integer | Page number, an integer from 1 to 2147483647; defaults to 1 when omitted. Only a single ASCII decimal positive integer is allowed; do not pass duplicate keys, signs, null values, or floating-point numbers. Default: 1 $minValue: 1 $maxValue: 2147483647 Example: 1How to obtain or enter: The caller starts from 1 and pages using the returned top-level pageInfo.totalCount and pageSize. |
|
| pageSize | integer | Number of entries per page, an integer from 1 to 100; defaults to 20 when omitted. It affects only this pagination request and does not change configurations. Default: 20 $minValue: 1 $maxValue: 100 Example: 20How to obtain or enter: The caller sets it to the desired number of entries per page. |
Additional Parameter Notes¶
The evaluator list is in content.data. Pagination information is in the top-level pageInfo of the response, where count is the number of entries on this page and totalCount is the total number of entries. The list contains evaluation configurations, and access permissions are consistent with evaluator management.
Request Example¶
curl 'https://openapi.guance.com/api/v1/agent_eval/evaluator/list?pageIndex=1&pageSize=20' \
--header 'DF-API-KEY:
Response¶
HTTP 200, application/json. The success wrapper and fields are as follows; for failures, see Common Errors and the exception handling on this page.
| Field | Type | Description |
|---|---|---|
| code | integer | Business response status; 200 on success. |
| errorCode | string | Empty on success; a specific error code on failure. |
| message | string | Empty on success; an error message on failure. |
| success | boolean | Whether the request succeeded. |
| traceId | string | Trace ID for this request; retain it when troubleshooting. |
| content | object | Contains data and the workspace common declaration. |
| content.data | array<object> | Complete evaluator configurations for the current page; an empty array when there are no results. |
| content.data[].uuid | string | Evaluator UUID, used for subsequent details, modifications, enable/disable, and deletion. |
| content.data[].name | string | Evaluator name. |
| content.data[].description | string | Business description; may be an empty string. |
| content.data[].evalType | string | prompt or schema. |
| content.data[].templateKey | string | Schema system template identifier; empty for the Prompt type. |
| content.data[].schemaConfig | object | Schema normalized configuration; an empty object for the Prompt type. |
| content.data[].schemaConfig.templateVersion | integer | Schema template version, currently 1; present only when the Schema configuration is non-empty. |
| content.data[].schemaConfig.schemaDialect | string | Schema dialect draft-07; present only when the Schema configuration is non-empty. |
| content.data[].schemaConfig.validationSource | string | Schema value source: output or tool_calls. |
| content.data[].schemaConfig.targetField | string | Schema validation target field, such as gen_ai_output_messages or tool_calls. |
| content.data[].schemaConfig.missingPolicy | string | Schema missing policy, currently fail. |
| content.data[].schemaConfig.schema | object | Actual JSON Schema; its structure is determined by the system template and custom configuration, and its internal keys are standard Draft 7 keywords and business custom attributes. |
| content.data[].promptUUID | string | Built-in Prompt template UUID; empty for custom Prompts and Schema. |
| content.data[].promptName | string | Template display name; when no Prompt is associated, Schema may return its system template name. |
| content.data[].promptDescription | string | Template description; empty when no template is associated. |
| content.data[].promptContent | string | Actual evaluation instruction; empty for the Schema type. |
| content.data[].promptOrigin | string | Prompt origin, builtin or custom; Schema may also return the compatible default builtin, which does not mean a Prompt is used. |
| content.data[].selectedInputFields | array<string> or null | Input fields selected by legacy versions or generic aliases derived in version 1; may be null when not configured, and may be an empty array in version 1 when only original paths are selected. |
| content.data[].selectedInputFields[] | string | Input evidence alias, such as gen_ai_input; not an arbitrary original Trace path. |
| content.data[].generationDescription | string | Original template generation description; may be empty. |
| content.data[].inputTemplateVersion | integer or null | Returns 1 for version 1; null for legacy versions and when not configured. |
| content.data[].userPromptTemplate | string | For version 1, the saved input template; for legacy Prompts, the input template generated according to the read language; empty for Schema. |
| content.data[].targetType | string | agent or llm; Schema supports only agent. |
| content.data[].evalScope | string | trace or span for Prompt; an empty string for Schema. |
| content.data[].resultType | string | boolean or score; Schema supports only boolean. |
| content.data[].resultConfig | object | Output configuration determined by resultType; it cannot be written directly through this API. |
| content.data[].resultConfig.values | array<string> | Present for the boolean type; fixed to pass and fail. |
| content.data[].resultConfig.values[] | string | Boolean evaluation result label, pass or fail. |
| content.data[].resultConfig.min | integer | Present for the score type; fixed to 0. |
| content.data[].resultConfig.max | integer | Present for the score type; fixed to 100. |
| content.data[].sourceType | string | APIs in this group manage only custom evaluators. |
| content.data[].targetConfig | object | Saved filtering, language, and input configurations; some subfields vary by type and input version. |
| content.data[].targetConfig.agentRuntime | string | Normalized Agent runtime filter value; empty means unrestricted. |
| content.data[].targetConfig.agentID | string | Agent instance filter value; may be empty. |
| content.data[].targetConfig.appID | string | Public appId filter value for the LLM application; may be empty. |
| content.data[].targetConfig.appName | string | Saved LLM application display name, used for the app_name label of evaluation results; it does not participate in online candidate Trace filtering. To filter applications, set appID. May be empty. |
| content.data[].targetConfig.language | string | Saved evaluation output language. |
| content.data[].targetConfig.promptOrigin | string | Origin saved for the Prompt type, builtin or custom; Schema usually does not have this key. |
| content.data[].targetConfig.selectedInputFields | array<string> | Present when legacy field selection or version 1 is configured; same semantics as the top-level selectedInputFields. |
| content.data[].targetConfig.selectedInputFields[] | string | Saved or derived generic input field name. |
| content.data[].targetConfig.generationDescription | string | Generation description saved for the Prompt type. |
| content.data[].targetConfig.inputTemplateVersion | integer | Present for version 1 with a value of 1. |
| content.data[].targetConfig.inputVariables | array<string> | Present for version 1; deduplicated variable paths parsed from userPromptTemplate, up to 100 entries. |
| content.data[].targetConfig.inputVariables[] | string | Original variable path or generic alias, such as root.input or spans[*].output. |
| content.data[].status | string | Saved status; new evaluators are enabled, and the status API can set enabled or disabled. Historical data may be draft. |
| content.data[].samplingRate | integer | Online sampling percentage, 0–100. |
| content.data[].dailyCallLimit | integer | Daily call limit, 1–1000000. |
| content.data[].timeoutSeconds | integer | Evaluation execution timeout, in seconds. |
| content.data[].maxRetries | integer | Maximum number of retries for online evaluation, 0–5. |
| content.data[].publishedAt | integer | Publication/enablement time, in Unix seconds; unpublished historical values may be -1. |
| content.data[].lastScanAt | integer | Most recent scan progress time, in Unix milliseconds; historical unset values may be -1. Actual configuration modifications may reset it; it is not the completion time of this HTTP request. |
| content.data[].createAt | integer | Creation time, in Unix seconds. |
| content.data[].updateAt | integer | Modification time, in Unix seconds. |
| content.declaration | object or null | Common declaration for this workspace; may be an empty object or null when not configured. In the list response, it is carried only at the content level and is not supplemented for each data[] item. |
| pageInfo | object | Pagination information is located at the top level of the response, not inside content. |
| pageInfo.pageIndex | integer | Current page number. |
| pageInfo.pageSize | integer | Current number of entries per page. |
| pageInfo.count | integer | Actual number of entries on this page. |
| pageInfo.totalCount | integer | Total number of custom evaluators in the current workspace. |
{
"code": 200,
"content": {
"data": [
{
"uuid": "aeve_0123456789abcdef0123456789abcdef",
"name": "LLM 回答完整性",
"description": "",
"evalType": "prompt",
"templateKey": "",
"schemaConfig": {},
"promptUUID": "",
"promptName": "",
"promptDescription": "",
"promptContent": "判断回答是否完整回应了用户问题。给出通过或不通过的结果及原因。",
"promptOrigin": "custom",
"selectedInputFields": [
"gen_ai_input",
"gen_ai_output"
],
"generationDescription": "",
"inputTemplateVersion": null,
"userPromptTemplate": "gen_ai_input:\n{{gen_ai_input}}\n\ngen_ai_output:\n{{gen_ai_output}}",
"targetType": "llm",
"evalScope": "trace",
"resultType": "boolean",
"resultConfig": {
"values": [
"pass",
"fail"
]
},
"sourceType": "custom",
"targetConfig": {
"agentRuntime": "",
"agentID": "",
"appID": "support_assistant",
"appName": "",
"language": "zh",
"promptOrigin": "custom",
"selectedInputFields": [
"gen_ai_input",
"gen_ai_output"
],
"generationDescription": ""
},
"status": "enabled",
"samplingRate": 20,
"dailyCallLimit": 10000,
"timeoutSeconds": 30,
"maxRetries": 2,
"publishedAt": 1795226400,
"lastScanAt": 1795226400000,
"createAt": 1795226400,
"updateAt": 1795226400
}
],
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "example-trace-id",
"pageInfo": {
"pageIndex": 1,
"pageSize": 20,
"count": 1,
"totalCount": 1
}
}
Error Responses¶
For authentication, rate limiting, and common request errors, see Common Error Definitions.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Handling |
|---|---|---|---|---|
| 406 | ft.ParameterValidationFailed | The request contains undeclared parameters, or a declared request field fails type/constraint validation | Parameter parsing failed | Submit only the request headers, path, and Query parameters declared on this page; this API does not require a JSON request body. |
| 406 | ft.InvalidParameterV2 | pageIndex or pageSize is duplicated, is not a valid ASCII decimal positive integer, or is out of range; or body parameters are carried in the URL | The value {} of parameter {} is invalid; when URL body parameters are rejected, the message is Send evaluator parameters in the JSON request body. |
Pass each pagination key only once and use an integer within the range in the parameter table; remove body parameters from the URL. |
| 500 | ft.InternalServerError | An unhandled exception occurs while reading the database or serializing configurations | Internal error | Retain the traceId and contact the administrator; this API is a read operation and can be retried after dependencies recover. |