Create and Enable an Evaluator¶
POST /api/v1/agent_eval/evaluator/create
Overview¶
Save an evaluation configuration and enable the evaluator.
Before You Call and Usage Steps¶
Use the DF-API-KEY of the target workspace. Even for read-only access, the application configuration management permission for Agent Monitoring is required. Only custom evaluators in the current workspace are operated on; system built-in evaluators are not exposed. Put parameters only in the corresponding query/path or JSON body; do not use body parameters in the URL. This endpoint enables the evaluator immediately after saving the configuration. An HTTP 200 response only proves that the configuration was saved successfully; it does not mean that existing traces have been evaluated. Subsequent online scheduling is affected by sampling, the daily limit, data arrival, and AI capabilities. Creation does not support a request idempotency key, and duplicate names are rejected. If the response times out, first list evaluators to confirm, and do not retry blindly. The returned content.uuid is used for subsequent management. 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 expression evaluation; root is the root record, spans are execution records ordered by time, and paths such as spans[*].output can be used. In the legacy custom mode, a non-empty selectedInputFields must be passed; in the legacy builtin mode, it can be omitted and the system inputs are used.
The UUID of a built-in Prompt must come from a template selected in the current workspace console or from an existing evaluator, and promptContent must still be submitted. Schema supports only the agent target and boolean results, and Prompt-specific fields are not passed; see the parameter table for the meaning of the four templateKeys. Before modifying the configuration, you can verify the collected data in the console first.
Full version 1 request (replace the endpoint, key, and actual appID):
curl '<Endpoint>/api/v1/agent_eval/evaluator/create' \
--request POST \
--header 'DF-API-KEY: <DF-API-KEY>' \
--header 'Content-Type: application/json' \
--data-binary '{
"name": "LLM raw input/output evaluation",
"evalType": "prompt",
"targetType": "llm",
"appID": "support_assistant",
"promptOrigin": "custom",
"promptContent": "Determine whether the answer fully addresses the user's question, and explain the reason.",
"inputTemplateVersion": 1,
"userPromptTemplate": "Input: {{root.input}}\nOutput: {{root.output}}",
"language": "zh",
"samplingRate": 20
}'
Full Schema request (does not depend on a Prompt template UUID):
curl '<Endpoint>/api/v1/agent_eval/evaluator/create' \
--request POST \
--header 'DF-API-KEY: <DF-API-KEY>' \
--header 'Content-Type: application/json' \
--data-binary '{
"name": "Agent output structure check",
"evalType": "schema",
"targetType": "agent",
"templateKey": "structured_output_compliance",
"schemaConfig": {
"schema": {
"type": "object",
"required": [
"answer"
],
"properties": {
"answer": {
"type": "string",
"minLength": 1
}
}
},
"missingPolicy": "fail"
},
"agentRuntime": "codex"
}'
appName only saves the application display name and writes it to the evaluation result label; it is not used as a candidate trace filter condition. To limit the target LLM application, you must set appID.
Request Headers¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| DF-API-KEY | string | Y | OpenAPI credentials of the target workspace. Both read and write require the application configuration management permission for Agent Monitoring; the role must be owner, wsAdmin, or general. Example: <DF-API-KEY>How to obtain or fill in: Create and authorize it in API Key Management of the target workspace, and pass it via the DF-API-KEY request header; do not put a real key in URLs or examples. |
Body Request Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| schemaConfig.schema | object | JSON Schema Draft 7 object that defines the structure of the data to be evaluated. Only in-document and resolvable $refs are allowed; remote/file references are prohibited. It can be omitted to use the Schema of the selected system template. This object describes the collected data, not the schema of this endpoint's request body. Example: {"type": "object", "required": ["answer"], "properties": {"answer": {"type": "string", "minLength": 1}}}How to obtain or fill in: Design a JSON Schema from the structure of the collected Agent output/tool data; alternatively, copy content.schemaConfig.schema from the details and modify it completely. |
|
| schemaConfig.missingPolicy | string | Handling policy when the input to be validated is missing. Only fail is supported. If omitted, the system template default fail is used. Example: failHow to obtain or fill in: Enter the fixed value fail; unsupported policies such as ignore and skip cannot be used. |
|
| name | string | Y | Evaluator name unique within the workspace. After trimming leading and trailing whitespace, it must be non-empty and at most 128 characters. Required for creation; if omitted on modification, the existing value is retained. Allow null: False Minimum length: 1 Maximum length: 128 Example: LLM Answer CompletenessHow to obtain or fill in: Named by the caller; first use List Evaluators to check existing names. |
| evalType | string | For creation, prompt or schema can be specified; the default is prompt. It cannot be changed after creation; the modification endpoint does not accept this parameter. Allow null: False Possible values: ['prompt', 'schema'] Example: promptHow to obtain or fill in: Choose based on whether you need semantic judgment or JSON structure validation. |
|
| description | string | Evaluator description, at most 512 characters. If omitted on creation, it is empty; if omitted on modification, the existing value is retained, an empty string clears it, and the server trims leading and trailing whitespace. Allow null: False Maximum length: 512 Empty string allowed: True Example: Check the answer completeness of the customer service applicationHow to obtain or fill in: The caller fills in the business objective description. |
|
| targetType | string | For prompt, agent or llm is supported, and agent is the default on creation; schema allows only agent. If omitted on modification, the existing value is retained. Allow null: False Possible values: ['agent', 'llm'] Example: llmHow to obtain or fill in: Choose agent for Agent Monitoring data and llm for LLM application traces. |
|
| promptOrigin | string | Can be passed only for the prompt type. builtin uses a built-in Prompt template of the current workspace, and custom uses custom instructions. If omitted on creation, the default is builtin; if omitted on modification, the existing value is retained. Allow null: False Possible values: ['builtin', 'custom'] Example: customHow to obtain or fill in: Choose custom for custom instructions; choose builtin for built-in templates and provide the template UUID. |
|
| promptUUID | string | Used only when the type is prompt and promptOrigin=builtin. Required on creation, and must be the UUID of a built-in Prompt template in the current workspace, at most 48 characters. Do not pass it in custom mode. Allow null: False Minimum length: 1 Maximum length: 48 Example: aepm_0123456789abcdef0123456789abcdefHow to obtain or fill in: Select a built-in Prompt template from the evaluator configuration in the console's Agent Monitoring, or read content.promptUUID from the details of an existing built-in Prompt evaluator in the same workspace; the current OpenAPI does not provide a template catalog endpoint, and an evaluator UUID cannot be used instead. |
|
| promptContent | string | Prompt type only. Required on creation, 1–65535 characters; the server trims leading and trailing whitespace. In both custom and built-in template modes, the actual evaluation instruction must be submitted. If omitted on modification, the existing value is retained. Allow null: False Minimum length: 1 Maximum length: 65535 Example: Determine whether the answer fully addresses the user's question. Give a pass or fail result and the reason.How to obtain or fill in: In custom mode, the caller writes it; in built-in mode, confirm the evaluation instruction after selecting a template in the console, or reuse content.promptContent from the details of an existing evaluator. |
|
| inputTemplateVersion | integer | Prompt type only. Optional integer 1, which indicates the variable input template mode. If not passed on creation, the legacy field selection mode is used; if not passed on modification, the saved version is retained, and null is not supported for reverting to the legacy version. Allow null: False Possible values: [1] Example: 1How to obtain or fill in: Pass 1 when you want to explicitly select raw trace paths, and provide userPromptTemplate at the same time; for an existing version 1 evaluator, read the details first. |
|
| userPromptTemplate | string | Input template used only in version 1, 1–65535 characters, and must contain 1–100 deduplicated valid variable paths. It supports root and spans paths as well as common aliases, and does not evaluate expressions; it cannot be submitted together with selectedInputFields. Required when creating version 1; if omitted on modification, the existing template is retained. Allow null: False Minimum length: 1 Maximum length: 65535 Example: "Input: {{root.input}}\nOutput: {{root.output}}"How to obtain or fill in: Confirm the fields in the traces collected by the target application; use {{root.input}} and {{root.output}} for LLM raw input/output, and {{root.gen_ai_input_messages}} and {{root.gen_ai_output_messages}} for Agent. Arrays support spans[*] and indexes; see the version 1 example on this page. |
|
| selectedInputFields | array | Can be passed only in the legacy prompt input mode. Required on creation in custom mode, as 1–5 non-duplicate fields; if omitted in builtin mode, built-in inputs are used. In version 1 it is derived from the template and must not be explicitly passed; if omitted on modification, the existing value is retained. Allow null: False Minimum length: 1 Maximum length: 5 Example: ["gen_ai_input", "gen_ai_output"]How to obtain or fill in: Select the required evidence from gen_ai_input, gen_ai_output, trace_context, tool_calls, and span_context. The first two are the root input/output, and the rest are the execution process, tool calls, and Span context. |
|
| selectedInputFields[*] | string | Legacy input field name; it must be one of the five items above and must not be duplicated within the array. Possible values: ['gen_ai_input', 'gen_ai_output', 'trace_context', 'tool_calls', 'span_context'] Example: gen_ai_inputHow to obtain or fill in: Select fixed fields according to the evidence required for evaluation; do not enter arbitrary trace paths. |
|
| generationDescription | string | Prompt type only. Records the original business description used when the template was generated, at most 4000 characters; if omitted on creation, it is empty, if omitted on modification, the existing value is retained, and an empty string clears it. This field itself does not trigger template generation. Allow null: False Maximum length: 4000 Empty string allowed: True Example: Determine whether the answer satisfies the goal explicitly stated by the userHow to obtain or fill in: The caller fills in and saves the template generation background, or reads content.generationDescription from the details. |
|
| templateKey | string | Schema type only. Required on creation; if omitted on modification, the existing value is retained. Supports four system template identifiers: structured_output_compliance, tool_call_arguments_completeness, citation_evidence_structure, and agent_task_result_compliance, at most 64 characters. Allow null: False Minimum length: 1 Maximum length: 64 Example: structured_output_complianceHow to obtain or fill in: Choose according to the target check: structured output, basic structure of tool arguments, citation evidence structure, or task result compliance; it can be obtained from content.templateKey in the details of an existing Schema evaluator, and a Prompt template UUID is not used. |
|
| schemaConfig | object | Configuration object for the schema type only; if omitted or an empty object on creation, the default configuration of the selected system template is used. If omitted on modification, it is kept; when explicitly submitted, it is re-normalized as the whole input, and items without schema/missingPolicy fall back to the defaults of the currently selected template instead of being merged item by item with the old object. Allow null: False Example: {"schema": {"type": "object", "required": ["answer"], "properties": {"answer": {"type": "string", "minLength": 1}}}, "missingPolicy": "fail"}How to obtain or fill in: Assemble it by the caller according to the descriptions of schemaConfig.schema and missingPolicy on this page, or read content.schemaConfig from the details first and then modify it. |
|
| evalScope | string | Prompt type only. trace evaluates the entire trace, and span evaluates a Span; the default on creation is trace, and if omitted on modification, the existing value is retained. Do not pass it for the schema type. Allow null: False Possible values: ['trace', 'span'] Example: traceHow to obtain or fill in: Select a fixed value according to the evaluation scope. |
|
| resultType | string | For prompt, boolean or score is supported, with boolean as the default on creation; schema supports only boolean. If omitted on modification, the existing value is retained; when the type changes, resultConfig is rebuilt by the server. boolean produces pass/fail, and score produces an integer score from 0 to 100. Allow null: False Possible values: ['boolean', 'score'] Example: booleanHow to obtain or fill in: Choose according to whether the business requires a score; do not submit resultConfig. |
|
| agentRuntime | string | Filter condition for the Agent runtime environment. Request values of at most 256 characters are normalized, and at most 128 characters are actually saved; an empty string means no restriction. Common aliases are mapped to standard names, for example ClaudeCode is converted to claude. If omitted on modification, the existing value is retained; an empty string clears it. Allow null: False Maximum length: 256 Empty string allowed: True Example: codexHow to obtain or fill in: Obtain it from the agent_runtime field of Agent Monitoring traces in the current workspace, such as codex, claude, and opencode; do not treat the examples as values that already exist in this workspace. |
|
| agentID | string | Filter condition for the Agent instance, at most 256 characters. If omitted on creation, it is empty; if omitted on modification, the existing value is retained, and an empty string clears it. Allow null: False Maximum length: 256 Empty string allowed: True Example: agent_checkout_01How to obtain or fill in: Obtain it from the agent_id field of Agent Monitoring traces in the current workspace or from the instance details in the console. |
|
| appID | string | Filter condition for the LLM target application, at most 256 characters. If omitted on creation, it is empty; if omitted on modification, the existing value is retained, and an empty string clears it. Allow null: False Maximum length: 256 Empty string allowed: True Example: support_assistantHow to obtain or fill in: Obtain it from content.data[].appId in List LLM Applications or from the LLM application details in the current workspace. Enter the public appId, not the configuration record uuid. |
|
| appName | string | Display name of the LLM application, at most 256 characters. After being saved, it is written to the app_name label of evaluation results; it does not participate in online candidate trace filtering, and appID is used to filter applications. If omitted on creation, it is empty. Allow null: False Maximum length: 256 Empty string allowed: True Example: Customer Service AssistantHow to obtain or fill in: Obtain it from the target application's console name or the app_name field of collected traces, and use it as a label for displaying results; fill in appID separately for actual target application filtering. |
|
| language | string | Language of the evaluation output, a non-empty string of at most 32 characters. If omitted on creation, the language of this request is used; if omitted on modification, the existing value is retained. The request language on read only affects the display/generation of the legacy input template and does not change the saved evaluation output language. Allow null: False Minimum length: 1 Maximum length: 32 Example: zhHow to obtain or fill in: Fill in the language required for the evaluation results, such as zh or en; for existing values, see content.targetConfig.language in the details. |
|
| samplingRate | integer | Online sampling percentage, an integer from 0 to 100, with a default of 20 on creation; 0 stops new sampling but does not change the enabled/disabled status. If omitted on modification, the existing value is retained. Allow null: False $minValue: 0 $maxValue: 100 Example: 20How to obtain or fill in: Set by the caller based on cost and coverage; read the details first to confirm the current value. |
|
| dailyCallLimit | integer | Daily call limit, an integer from 1 to 1000000, with a default of 10000 on creation; if omitted on modification, the existing value is retained. It is not the number of historical results, and 0 does not mean unlimited. Allow null: False $minValue: 1 $maxValue: 1000000 Example: 10000How to obtain or fill in: Set by the caller based on budget, and verify the actual execution in the console. |
|
| timeoutSeconds | integer | Timeout for a single online evaluation, in seconds, an integer from 5 to 300, with a default of 30 on creation; if omitted on modification, the existing value is retained. It is not the timeout of this HTTP request. Allow null: False $minValue: 5 $maxValue: 300 Example: 30How to obtain or fill in: Set by the caller based on the execution duration of the target evaluation. |
|
| maxRetries | integer | Maximum number of retries for online evaluation tasks, an integer from 0 to 5, with a default of 2 on creation; 0 means no additional retries. If omitted on modification, the existing value is retained. It is not the number of retries of this endpoint request. Allow null: False $minValue: 0 $maxValue: 5 Example: 2How to obtain or fill in: Set by the caller based on evaluation fault tolerance and budget. |
Additional Parameter Notes¶
Submit the configuration using a JSON request body. After a successful request, the evaluator status is enabled. Prompt evaluation requires the workspace to have available AI capabilities.
The LLM example below uses a custom Prompt and reads input and output from the traces of the target application. Replace appID with the application ID in the current workspace. The returned content.uuid can be used for query, modification, enabling/disabling, and deletion.
When using a built-in Prompt, fill in promptOrigin as builtin, the template UUID of the current workspace, and the evaluation instruction. When creating a Schema evaluator, fill in evalType as schema, targetType as agent, and its system template identifier.
Request Example¶
curl 'https://openapi.guance.com/api/v1/agent_eval/evaluator/create' \
--request POST \
--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 identifier of this request; keep it when troubleshooting. |
| content | object | The complete evaluator configuration that was saved or read. |
| content.uuid | string | Evaluator UUID, used for subsequent details, modification, 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 | Source of the Schema value: output or tool_calls. |
| content.schemaConfig.targetField | string | Target field validated by the Schema, such as gen_ai_output_messages or tool_calls. |
| content.schemaConfig.missingPolicy | string | Schema missing policy, currently fail. |
| content.schemaConfig.schema | object | The 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.promptUUID | string | Built-in Prompt template UUID; empty for custom Prompts and Schema. |
| content.promptName | string | Template display name; for Schema, the system template name may be returned when no Prompt is associated. |
| content.promptDescription | string | Template description; empty when no template is associated. |
| content.promptContent | string | The actual evaluation instruction; empty for the Schema type. |
| content.promptOrigin | string | Prompt source, builtin or custom; for Schema, a compatible default builtin may also be returned, which does not indicate that a Prompt is used. |
| content.selectedInputFields | array<string> or null | The input fields selected in the legacy version, or the common aliases derived in version 1; it 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 the legacy version and when not configured. |
| content.userPromptTemplate | string | For version 1, the saved input template; for legacy Prompt, the input template generated according to the read language; empty for Schema. |
| content.targetType | string | agent or llm; Schema is agent only. |
| content.evalScope | string | trace or span for Prompt; an empty string for Schema. |
| content.resultType | string | boolean or score; Schema is boolean only. |
| content.resultConfig | object | Output configuration determined by resultType; it cannot be written directly through this endpoint. |
| 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 endpoints manages only custom evaluators. |
| content.targetConfig | object | Saved filtering, language, and input configuration; some subfields vary with the 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 | LLM application public appId filter value; 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, so set appID to filter applications. May be empty. |
| content.targetConfig.language | string | Saved evaluation output language. |
| content.targetConfig.promptOrigin | string | Source saved for the Prompt type, builtin or custom; Schema usually has no such key. |
| content.targetConfig.selectedInputFields | array<string> | Present when legacy field selection or version 1 is configured; same meaning as the top-level selectedInputFields. |
| content.targetConfig.selectedInputFields[] | string | Saved or derived common input field name. |
| content.targetConfig.generationDescription | string | Generation description saved for the Prompt type. |
| content.targetConfig.inputTemplateVersion | integer | Present for version 1, with the value 1. |
| content.targetConfig.inputVariables | array<string> | Present for version 1; the deduplicated variable paths parsed from userPromptTemplate, at most 100 items. |
| content.targetConfig.inputVariables[] | string | Raw variable path or common alias, such as root.input or spans[*].output. |
| content.status | string | Saved status; enabled for a new evaluator, and the status endpoint 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; a historical value of -1 may be returned when not published. |
| content.lastScanAt | integer | Time of the latest scan progress, in Unix milliseconds; a historical unset value may be -1. It may be reset by actual configuration changes, and it 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 | Public declaration of this workspace; may be an empty object or null when not configured; only the content level carries it in lists, and it is not supplemented item by item for data[]. |
{
"code": 200,
"content": {
"uuid": "aeve_0123456789abcdef0123456789abcdef",
"name": "LLM Answer Completeness",
"description": "",
"evalType": "prompt",
"templateKey": "",
"schemaConfig": {},
"promptUUID": "",
"promptName": "",
"promptDescription": "",
"promptContent": "Determine whether the answer fully addresses the user's question. Give a pass or fail result and the reason.",
"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 | Handling |
|---|---|---|---|---|
| 406 | ft.ParameterValidationFailed | Request fields, types, or constraints do not conform to the declaration; the version 1 template format or variable path is invalid | Parameter parsing failed; when the template fails to parse, message explains the specific reason. | Correct according to the parameter table; use valid paths and complete double curly braces in templates, and do not send undeclared fields. |
| 406 | ft.InvalidParameterV2 | Prompt/Schema-specific fields are mixed, a conditionally required field is missing, the template version combination or the Schema configuration/reference is invalid; body parameters are carried in the URL | The value {} of parameter {} is invalid; a specific reason may also be returned, for example userPromptTemplate requires inputTemplateVersion 1 or OpenAPI Schema evaluation requires valid local Draft 7 references. |
Fix the JSON body according to the field combinations on this page; do not pass selectedInputFields together with version 1, and use only resolvable in-document Draft 7 references for Schema; do not submit URL body parameters. |
| 404 | ft.ObjectNotExists | The built-in Prompt template of the current workspace specified on creation does not exist or is not a built-in template; the specified Schema system template identifier does not exist | Agent evaluation Prompt template does not exist or Agent Schema evaluation template does not exist | Confirm promptUUID from the built-in Prompt templates in the current workspace console or from the details of an existing evaluator; for Schema, use the four templateKeys listed on this page. Do not treat an evaluator UUID as a template UUID. |
| 400 | ft.InvalidAction | The name being created conflicts with an existing evaluator name in the workspace, including concurrent creation | Evaluator name already exists | After listing existing evaluators, choose a unique name; if creation times out, query first to confirm whether it has been saved, and do not submit repeatedly without checking. |
| 400 | ft.NotEnabledAiRobotServer | When creating a Prompt evaluator, the AI capability of the current workspace is unavailable | AI 服务未启用/或已经关闭 | Enable it in the console and confirm that the AI service of the current workspace is available, then retry; creating the Schema type does not require this Prompt capability check. |
| 500 | ft.InternalServerError | An unhandled exception occurs while saving the database record, writing the audit, or in other dependencies | Internal error | Keep traceId, read back the target configuration or list first to confirm the actual save status, and then decide whether to retry; do not treat a failed response as not saved. |