UpdateEvaluator
Updates an evaluator.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
agentloop:UpdateEvaluator |
update |
*Evaluator
|
None | None |
Request syntax
PUT /api/v1/evaluators/{agentSpace}/{name} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| agentSpace |
string |
Yes |
The name of the AgentSpace. |
prod-agentspace |
| name |
string |
Yes |
The name of the evaluator. |
trace_task_completion |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. Updates the evaluator attributes when |
{"displayName":"Pipeline Task Completion","version":"1.1.0","config":{"prompt":"Please evaluate the task completion more strictly"}} |
| displayName |
string |
No |
The display name. |
Pipeline Task Completion |
| description |
string |
No |
The description of the evaluator. |
Determines whether the agent has completed the user task |
| version |
string |
No |
The new version number. A new version is created when this parameter is specified. |
1.1.0 |
| versionDescription |
string |
No |
The version description. |
Optimized scoring instructions |
| config |
object |
No |
The configuration for the new version. This parameter is typically required when |
{"prompt":"Please evaluate the task completion more strictly"} |
| annotations |
array |
No |
The list of annotation tags. |
["__en"] |
|
string |
No |
A single annotation tag. |
__en |
|
| properties |
object |
No |
The evaluator properties. |
{"agentEvaluatorMode":"raw_prompt"} |
| status |
string |
No |
The status of the evaluator version to be written. Only DRAFT is supported when explicitly specified. To publish a draft, call UpdateEvaluatorVersionStatus. |
DRAFT |
| createVersion |
boolean |
No |
Specifies whether to create a new draft. A value of true creates a new draft, and a value of false updates a specified existing draft. When this parameter is specified, the version status defaults to DRAFT. |
true |
| skills |
array<object> |
No |
The complete list of business skills saved for the standard agent evaluator in this request. Pass an empty array to clear the business skills for this version. |
[{"skillName":"fact-check","files":[{"name":"SKILL.md","content":"---\nname: fact-check\ndescription: Verify factual basis in responses\n---\nVerify the facts in the response item by item and list the basis."}]}] |
|
array<object> |
No |
A business skill included in this version. |
{"skillName":"fact-check","files":[{"name":"SKILL.md","content":"---\nname: fact-check\ndescription: Verify factual basis in responses\n---\nVerify the facts in the response item by item and list the basis."}]} |
|
| skillName |
string |
No |
The name of the skill, which must be unique within the list of skills submitted in this request. |
fact-check |
| displayName |
string |
No |
The display name of the skill. |
Fact checking |
| description |
string |
No |
The description of the skill purpose. |
Verify the factual basis in the response |
| enable |
boolean |
No |
Specifies whether to enable the skill. Default value: true. |
true |
| files |
array<object> |
No |
The complete list of files for the skill, which must include SKILL.md in the root directory. |
[{"name":"SKILL.md","content":"---\nname: fact-check\ndescription: Verify factual basis in responses\n---\nVerify the facts in the response item by item and list the basis."}] |
|
object |
No |
A file in the skill. |
{"name":"SKILL.md","content":"---\nname: fact-check\ndescription: Verify factual basis in responses\n---\nVerify the facts in the response item by item and list the basis."} |
|
| name |
string |
No |
The path of the file relative to the root directory of the skill. |
SKILL.md |
| content |
string |
No |
The text content of the file. |
--- name: fact-check description: Verify the factual basis in the response --- Verify the facts in the response item by item and list the basis |
| clientToken |
string |
No |
The idempotency token. CloudSpec declares this query parameter, but the backend does not currently perform idempotency checks. |
a1b2c3d4-1234-5678-90ab-cdef12345678 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
The request ID. |
3FE4CD1E-FF41-56BE-B590-7A021D9C1524 |
Examples
Success response
JSON format
{
"requestId": "3FE4CD1E-FF41-56BE-B590-7A021D9C1524"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.