Skip to content

Get Evaluator Details



GET /api/v1/agent_eval/evaluator/{evaluator_uuid}/get

Overview

Get the configuration of the specified custom evaluator in the current workspace.

Before Calling 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. Only custom evaluators in the current workspace are operated on; built-in system evaluators are not exposed. Place parameters only in the corresponding Query/path or JSON body; do not use body parameters in the URL. Obtain the path parameter from content.uuid returned by Create or content.data[].uuid from List. Returns the current configuration without executing evaluations or generating new results. You can read back this endpoint first, then construct partial modifications; the status and scan time are current values, not confirmation of execution completion. Version 1 uses inputTemplateVersion=1 and userPromptTemplate, derives variables from the template, and does not pass selectedInputFields. Templates only reference data paths and do not support executable expressions; root is the root record, spans are execution records ordered by time, and paths such as spans[*].output can be used. In legacy custom mode, selectedInputFields must be non-empty; in legacy builtin mode, it can be omitted and the system input is used.

Route Parameters

Parameter Name Type Required Description
evaluator_uuid string Yes UUID of a custom evaluator in the current workspace. Built-in system evaluators and UUIDs from other workspaces are treated as nonexistent.
Example: aeve_0123456789abcdef0123456789abcdef
How to obtain or enter: Obtain from content.uuid in Create Evaluator or content.data[].uuid in List Evaluators.

Request Headers

Parameter Name Type Required Description
DF-API-KEY string Yes OpenAPI credential for the target workspace. Both read and write 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, and pass it using the DF-API-KEY request header; do not put a real key in the URL or examples.

Additional Parameter Notes

Use the content.uuid returned by the create API, or obtain the UUID from the list. Evaluators from other workspaces and built-in system evaluators are treated as nonexistent.

Request Example

curl 'https://openapi.truewatch.com/api/v1/agent_eval/evaluator/aeve_0123456789abcdef0123456789abcdef/get' \ --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; error message on failure.
success boolean Whether the request succeeded.
traceId string Trace identifier for this request; retain it when troubleshooting.
content object Complete evaluator configuration saved or read.
content.uuid string Evaluator UUID, used for subsequent details, modifications, enabling/disabling, and deletion.
content.name string Evaluator name.
content.description string Business description; may be an empty string.
content.evalType string prompt or schema.
content.templateKey string Schema system template identifier; empty for the Prompt type.
content.schemaConfig object Normalized Schema configuration; an empty object for the Prompt type.
content.schemaConfig.templateVersion integer Schema template version, currently 1; present only when the Schema configuration is non-empty.
content.schemaConfig.schemaDialect string Schema dialect draft-07; present only when the Schema configuration is non-empty.
content.schemaConfig.validationSource string Schema value source: output or tool_calls.
content.schemaConfig.targetField string Schema validation target field, such as gen_ai_output_messages or tool_calls.
content.schemaConfig.missingPolicy string Schema missing policy, currently fail.
content.schemaConfig.schema object Actual JSON Schema; the structure is determined by the system template and custom configuration, and internal keys are standard Draft 7 keywords and custom business attributes.
content.promptUUID string Built-in Prompt template UUID; empty for custom Prompts and Schema.
content.promptName string Template display name; for Schema without an associated Prompt, the system template name may be returned.
content.promptDescription string Template description; empty when no template is associated.
content.promptContent string Actual evaluation instruction; empty for the Schema type.
content.promptOrigin string Prompt source: builtin or custom; Schema may also return the compatible default builtin, which does not mean a Prompt is used.
content.selectedInputFields array<string> or null Input fields selected in the legacy version or generic aliases derived in version 1; may be null when not configured, and may be an empty array in version 1 when only raw paths are selected.
content.selectedInputFields[] string Input evidence alias, such as gen_ai_input; not an arbitrary raw Trace path.
content.generationDescription string Original template generation description; may be empty.
content.inputTemplateVersion integer or null Returns 1 for version 1; null for legacy versions and when not configured.
content.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.targetType string agent or llm; Schema supports only agent.
content.evalScope string For Prompt, trace or span; for Schema, an empty string.
content.resultType string boolean or score; Schema supports only boolean.
content.resultConfig object Output configuration determined by resultType; cannot be written directly through this API.
content.resultConfig.values array<string> Present for the boolean type; fixed to pass and fail.
content.resultConfig.values[] string Boolean evaluation result label, pass or fail.
content.resultConfig.min integer Present for the score type; fixed to 0.
content.resultConfig.max integer Present for the score type; fixed to 100.
content.sourceType string This group of APIs manages only custom evaluators.
content.targetConfig object Saved filtering, language, and input configuration; some subfields vary by type and input version.
content.targetConfig.agentRuntime string Normalized Agent runtime environment filter value; empty means unrestricted.
content.targetConfig.agentID string Agent instance filter value; may be empty.
content.targetConfig.appID string Public appId filter value for the LLM application; may be empty.
content.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.targetConfig.language string Saved evaluation output language.
content.targetConfig.promptOrigin string For the Prompt type, the saved source builtin or custom; Schema usually does not have this key.
content.targetConfig.selectedInputFields array<string> Present when legacy field selection or version 1 is configured; semantics are the same as the top-level selectedInputFields.
content.targetConfig.selectedInputFields[] string Saved or derived generic input field name.
content.targetConfig.generationDescription string Generation description saved for the Prompt type.
content.targetConfig.inputTemplateVersion integer Present for version 1; the value is 1.
content.targetConfig.inputVariables array<string> Present for version 1; deduplicated variable paths parsed from userPromptTemplate, up to 100 items.
content.targetConfig.inputVariables[] string Original variable path or generic alias, such as root.input or spans[*].output.
content.status string Saved status; new evaluators are enabled, and the status API can set enabled or disabled. Historical data may be draft.
content.samplingRate integer Online sampling percentage, 0–100.
content.dailyCallLimit integer Daily call limit, 1–1000000.
content.timeoutSeconds integer Evaluation execution timeout in seconds.
content.maxRetries integer Maximum number of retries for online evaluation, 0–5.
content.publishedAt integer Publish/enable time, in Unix seconds; historical unpublished values may be -1.
content.lastScanAt integer Most recent scan progress time, in Unix milliseconds; historical unset values may be -1. Actual configuration modifications may reset it; this is not the completion time of this HTTP request.
content.createAt integer Creation time, in Unix seconds.
content.updateAt integer Modification time, in Unix seconds.
content.declaration object or null Workspace-level public declaration; when not configured, it may be an empty object or null. In lists, only the content level carries it, and it is not added item by item to data[].
{
    "code": 200,
    "content": {
        "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"
}

Error Responses

For authentication, rate limiting, and common request errors, see Common Error Definitions.

HTTP Status errorCode Trigger Condition Message or Response Description Resolution
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 A body parameter is included in the URL Send evaluator parameters in the JSON request body. Remove the body parameter from the URL; this API does not require a request body.
404 ft.ObjectNotExists The target evaluator does not exist, belongs to another workspace, or is a built-in system evaluator Agent evaluator does not exist Use the current workspace key to list custom evaluators and verify content.data[].uuid; do not use UUIDs from other workspaces or built-in system evaluators.
500 ft.InternalServerError An unhandled exception occurs while reading the database or serializing the configuration Internal error Retain the traceId and contact the administrator; this API is a read operation and can be retried after dependencies recover.