curl --request POST \
--url https://api.egp.scale.com/v5/evaluations/tasks/dry-run \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"configuration": {},
"sample_data": [
{}
]
}
'import requests
url = "https://api.egp.scale.com/v5/evaluations/tasks/dry-run"
payload = {
"configuration": {},
"sample_data": [{}]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({configuration: {}, sample_data: [{}]})
};
fetch('https://api.egp.scale.com/v5/evaluations/tasks/dry-run', 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.egp.scale.com/v5/evaluations/tasks/dry-run",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'configuration' => [
],
'sample_data' => [
[
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.egp.scale.com/v5/evaluations/tasks/dry-run"
payload := strings.NewReader("{\n \"configuration\": {},\n \"sample_data\": [\n {}\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.egp.scale.com/v5/evaluations/tasks/dry-run")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"configuration\": {},\n \"sample_data\": [\n {}\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.egp.scale.com/v5/evaluations/tasks/dry-run")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"configuration\": {},\n \"sample_data\": [\n {}\n ]\n}"
response = http.request(request)
puts response.read_body{
"task_type": "chat_completion",
"results": [
{
"row_index": 123,
"success": true,
"result": "<unknown>",
"error": "<string>"
}
],
"info": {}
}{
"message": "<string>",
"completed_results": [
{
"row_index": 123,
"success": true,
"result": "<unknown>",
"error": "<string>"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Dry-run a custom-function evaluation task
Dry-run a custom-function evaluation task against sample rows to validate it before creating an evaluation.
Runs the task’s Python scoring function over each row in sample_data (1-10 rows) and returns
a per-row result — success with the returned result or an error — plus the resolved
function name and parameters, so a broken function or misconfigured task is caught before it is
used in a real evaluation. Nothing is persisted and no evaluation is created; results are returned
inline.
Only the custom_function task type is supported; any other task_type returns 400. The
configuration must be a valid custom-function config: a Python function_source (up to
10,000 characters), an optional arg_mapping of function parameters to item. locators
(auto-derived from the function signature when omitted), and optional literal config_args. An
invalid configuration or a function that fails to load returns 400; exceeding the dry-run’s total
time budget returns 408 with whatever rows completed. When two-plane evaluations are enabled for
the account the request is proxied to the eval service’s control plane.
curl --request POST \
--url https://api.egp.scale.com/v5/evaluations/tasks/dry-run \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"configuration": {},
"sample_data": [
{}
]
}
'import requests
url = "https://api.egp.scale.com/v5/evaluations/tasks/dry-run"
payload = {
"configuration": {},
"sample_data": [{}]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({configuration: {}, sample_data: [{}]})
};
fetch('https://api.egp.scale.com/v5/evaluations/tasks/dry-run', 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.egp.scale.com/v5/evaluations/tasks/dry-run",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'configuration' => [
],
'sample_data' => [
[
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.egp.scale.com/v5/evaluations/tasks/dry-run"
payload := strings.NewReader("{\n \"configuration\": {},\n \"sample_data\": [\n {}\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.egp.scale.com/v5/evaluations/tasks/dry-run")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"configuration\": {},\n \"sample_data\": [\n {}\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.egp.scale.com/v5/evaluations/tasks/dry-run")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"configuration\": {},\n \"sample_data\": [\n {}\n ]\n}"
response = http.request(request)
puts response.read_body{
"task_type": "chat_completion",
"results": [
{
"row_index": 123,
"success": true,
"result": "<unknown>",
"error": "<string>"
}
],
"info": {}
}{
"message": "<string>",
"completed_results": [
{
"row_index": 123,
"success": true,
"result": "<unknown>",
"error": "<string>"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Headers
Body
The type of evaluation task to dry-run.
chat_completion, inference, application_variant, agentex_output, metric, auto_evaluation.question, auto_evaluation.guided_decoding, auto_evaluation.agent, contributor_evaluation.question, contributor_audit, custom_function Task-type-specific configuration. Validated per task_type.
Sample data rows to test the task against.
1 - 10 elementsResponse
Successful Response
chat_completion, inference, application_variant, agentex_output, metric, auto_evaluation.question, auto_evaluation.guided_decoding, auto_evaluation.agent, contributor_evaluation.question, contributor_audit, custom_function Show child attributes
Show child attributes
Task-type-specific metadata (e.g. function_name, parameters).

