Obtener el desglose por etiqueta de una ejecución
curl --request GET \
--url https://api.zelto.ai/v1/benchmarks/{id}/results/{runId}/tag-breakdown \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.zelto.ai/v1/benchmarks/{id}/results/{runId}/tag-breakdown"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.zelto.ai/v1/benchmarks/{id}/results/{runId}/tag-breakdown', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.zelto.ai/v1/benchmarks/{id}/results/{runId}/tag-breakdown",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.zelto.ai/v1/benchmarks/{id}/results/{runId}/tag-breakdown"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.zelto.ai/v1/benchmarks/{id}/results/{runId}/tag-breakdown")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zelto.ai/v1/benchmarks/{id}/results/{runId}/tag-breakdown")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"runId": "<string>",
"candidates": [
{
"id": "<string>",
"label": "<string>",
"model": "<string>",
"agentVersionId": "<string>",
"agentVersionLabel": "<string>",
"isReference": true
}
],
"tags": [
{
"name": "<string>",
"color": "neutral",
"cases": 123,
"candidates": [
{
"candidateId": "<string>",
"passed": 123,
"total": 123,
"passRate": 123
}
]
}
],
"untagged": {
"cases": 123,
"candidates": [
{
"candidateId": "<string>",
"passed": 123,
"total": 123,
"passRate": 123
}
]
}
}{
"error": "<string>",
"message": "<string>",
"code": "<string>",
"hint": "<string>",
"parameter": "<string>",
"unknown": [
"<string>"
],
"valid": [
"<string>"
],
"details": {}
}{
"error": "<string>",
"message": "<string>",
"code": "<string>",
"hint": "<string>",
"parameter": "<string>",
"unknown": [
"<string>"
],
"valid": [
"<string>"
],
"details": {}
}{
"error": "<string>",
"message": "<string>",
"code": "<string>",
"hint": "<string>",
"parameter": "<string>",
"unknown": [
"<string>"
],
"valid": [
"<string>"
],
"details": {}
}Benchmarks
Obtener el desglose por etiqueta de una ejecución
Para cada etiqueta de los casos de la ejecución, cuántos casos aprobó cada candidato. Un caso cuenta una vez por cada etiqueta que lleva; los casos con error u omitidos quedan fuera. Sin contenido de llamadas.
GET
/
v1
/
benchmarks
/
{id}
/
results
/
{runId}
/
tag-breakdown
Obtener el desglose por etiqueta de una ejecución
curl --request GET \
--url https://api.zelto.ai/v1/benchmarks/{id}/results/{runId}/tag-breakdown \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.zelto.ai/v1/benchmarks/{id}/results/{runId}/tag-breakdown"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.zelto.ai/v1/benchmarks/{id}/results/{runId}/tag-breakdown', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.zelto.ai/v1/benchmarks/{id}/results/{runId}/tag-breakdown",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.zelto.ai/v1/benchmarks/{id}/results/{runId}/tag-breakdown"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.zelto.ai/v1/benchmarks/{id}/results/{runId}/tag-breakdown")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zelto.ai/v1/benchmarks/{id}/results/{runId}/tag-breakdown")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"runId": "<string>",
"candidates": [
{
"id": "<string>",
"label": "<string>",
"model": "<string>",
"agentVersionId": "<string>",
"agentVersionLabel": "<string>",
"isReference": true
}
],
"tags": [
{
"name": "<string>",
"color": "neutral",
"cases": 123,
"candidates": [
{
"candidateId": "<string>",
"passed": 123,
"total": 123,
"passRate": 123
}
]
}
],
"untagged": {
"cases": 123,
"candidates": [
{
"candidateId": "<string>",
"passed": 123,
"total": 123,
"passRate": 123
}
]
}
}{
"error": "<string>",
"message": "<string>",
"code": "<string>",
"hint": "<string>",
"parameter": "<string>",
"unknown": [
"<string>"
],
"valid": [
"<string>"
],
"details": {}
}{
"error": "<string>",
"message": "<string>",
"code": "<string>",
"hint": "<string>",
"parameter": "<string>",
"unknown": [
"<string>"
],
"valid": [
"<string>"
],
"details": {}
}{
"error": "<string>",
"message": "<string>",
"code": "<string>",
"hint": "<string>",
"parameter": "<string>",
"unknown": [
"<string>"
],
"valid": [
"<string>"
],
"details": {}
}Autorizaciones
Envía Authorization: Bearer YOUR_API_KEY. La clave corresponde a una sola organización.
Parámetros de ruta
Id del benchmark.
Id de la ejecución.
Parámetros de consulta
Capa de puntuación (una recalificación). Por defecto: la capa original.
Respuesta
Respuesta correcta.
Tasas de aprobación de casos por etiqueta para cada candidato de una ejecución (repeticiones agrupadas, correcciones aplicadas).

