import httpx, yaml
# Latest version
resp = httpx.get("https://api.decimal.ai/api/v1/registry/skills/gdpr-pii-classifier/eval")
resp.raise_for_status()
eval_data = yaml.safe_load(resp.json()["eval_yaml_text"])
print(f"{len(eval_data['cases'])} test cases")
# The suite as it stands on a SPECIFIC version — use this to re-run a published
# number, whose run names the version it was measured against.
v1 = httpx.get(
"https://api.decimal.ai/api/v1/registry/skills/sla-breach-response/eval",
params={"version": 1},
)decimalai skills pull gdpr-pii-classifier # writes eval.yaml alongside SKILL.mdconst options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.decimal.ai/api/v1/registry/skills/{skill_id}/eval', 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.decimal.ai/api/v1/registry/skills/{skill_id}/eval",
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.decimal.ai/api/v1/registry/skills/{skill_id}/eval"
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.decimal.ai/api/v1/registry/skills/{skill_id}/eval")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.decimal.ai/api/v1/registry/skills/{skill_id}/eval")
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{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Get a public registry skill's eval.yaml (latest version, or a specific one)
Return a public registry skill’s eval.yaml text.
Anonymous-readable. Mirrors the /body pattern: accepts UUID or
Skill.name slug. 404 when the skill has no eval.yaml authored yet.
Without version this serves the latest published version, unchanged.
With version=N it serves the suite attached to that version_number —
the query the “reproduce the published ablation” flow needs, because a
benchmark run names the version it was measured against and a skill that
has since re-versioned no longer serves that suite as latest.
Used by decimalai skills pull <slug> to fetch the eval suite
alongside SKILL.md so a user can run decimalai skills benchmark
against the local copy.
What version promises: these are the cases attached to that version of
the skill right now. That is not the same as a frozen copy of what some
past benchmark run executed — a publisher who re-pushes a re-authored
eval.yaml rewrites the current version’s cases in place without minting a
new version, and this endpoint cannot see that. Treat the result as “the
suite this version carries”, and treat a published number as reproducible
only up to that.
import httpx, yaml
# Latest version
resp = httpx.get("https://api.decimal.ai/api/v1/registry/skills/gdpr-pii-classifier/eval")
resp.raise_for_status()
eval_data = yaml.safe_load(resp.json()["eval_yaml_text"])
print(f"{len(eval_data['cases'])} test cases")
# The suite as it stands on a SPECIFIC version — use this to re-run a published
# number, whose run names the version it was measured against.
v1 = httpx.get(
"https://api.decimal.ai/api/v1/registry/skills/sla-breach-response/eval",
params={"version": 1},
)decimalai skills pull gdpr-pii-classifier # writes eval.yaml alongside SKILL.mdconst options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.decimal.ai/api/v1/registry/skills/{skill_id}/eval', 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.decimal.ai/api/v1/registry/skills/{skill_id}/eval",
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.decimal.ai/api/v1/registry/skills/{skill_id}/eval"
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.decimal.ai/api/v1/registry/skills/{skill_id}/eval")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.decimal.ai/api/v1/registry/skills/{skill_id}/eval")
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{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Query Parameters
Response
Successful Response