更新评测用例兼容接口
curl --request PUT \
--url http://localhost:8000/dev/apps/{app_name}/eval_sets/{eval_set_id}/evals/{eval_case_id} \
--header 'Content-Type: application/json' \
--data '
{
"evalId": "case-001"
}
'import requests
url = "http://localhost:8000/dev/apps/{app_name}/eval_sets/{eval_set_id}/evals/{eval_case_id}"
payload = { "evalId": "case-001" }
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({evalId: 'case-001'})
};
fetch('http://localhost:8000/dev/apps/{app_name}/eval_sets/{eval_set_id}/evals/{eval_case_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));null{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}兼容接口
更新评测用例兼容接口
与更新评测用例的连字符路径行为一致
仅在启用开发界面的服务中可用,例如 veadk web 或 adk api_server --with_ui;默认 adk api_server 不提供此接口
PUT
/
dev
/
apps
/
{app_name}
/
eval_sets
/
{eval_set_id}
/
evals
/
{eval_case_id}
更新评测用例兼容接口
curl --request PUT \
--url http://localhost:8000/dev/apps/{app_name}/eval_sets/{eval_set_id}/evals/{eval_case_id} \
--header 'Content-Type: application/json' \
--data '
{
"evalId": "case-001"
}
'import requests
url = "http://localhost:8000/dev/apps/{app_name}/eval_sets/{eval_set_id}/evals/{eval_case_id}"
payload = { "evalId": "case-001" }
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({evalId: 'case-001'})
};
fetch('http://localhost:8000/dev/apps/{app_name}/eval_sets/{eval_set_id}/evals/{eval_case_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));null{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}该下划线路径与对应连字符路径使用相同请求和响应。此操作替换完整用例,请先保存需要保留的样本内容,并确认请求和路径中的用例 ID 一致
完整调用条件与新接口见对应评测接口
写入或删除评测样本会修改评测集中的实际数据
请求体
application/json
评测用例 ID
评测使用的对话调用序列
Show child attributes
Show child attributes
Show child attributes
Show child attributes
评测会话的应用、用户与初始状态
Show child attributes
Show child attributes
创建时间,Unix 时间戳,单位为秒
Show child attributes
Show child attributes
用于核对的最终会话状态
响应
请求成功
最后修改于 2026年9月19日