curl --request POST \
--url https://platform.composo.ai/api/v1/evals/reward \
--header 'API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"messages": [
{}
],
"evaluation_criteria": "<string>",
"evaluator_name": "<string>",
"model_core": "align-20251111",
"tags": {},
"trace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"system": "<string>",
"tools": [
{}
],
"evaluate_latest": true,
"explanation_cleaning": "end_user"
}
'import requests
url = "https://platform.composo.ai/api/v1/evals/reward"
payload = {
"messages": [{}],
"evaluation_criteria": "<string>",
"evaluator_name": "<string>",
"model_core": "align-20251111",
"tags": {},
"trace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"system": "<string>",
"tools": [{}],
"evaluate_latest": True,
"explanation_cleaning": "end_user"
}
headers = {
"API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
messages: [{}],
evaluation_criteria: '<string>',
evaluator_name: '<string>',
model_core: 'align-20251111',
tags: {},
trace_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
system: '<string>',
tools: [{}],
evaluate_latest: true,
explanation_cleaning: 'end_user'
})
};
fetch('https://platform.composo.ai/api/v1/evals/reward', 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://platform.composo.ai/api/v1/evals/reward",
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([
'messages' => [
[
]
],
'evaluation_criteria' => '<string>',
'evaluator_name' => '<string>',
'model_core' => 'align-20251111',
'tags' => [
],
'trace_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'system' => '<string>',
'tools' => [
[
]
],
'evaluate_latest' => true,
'explanation_cleaning' => 'end_user'
]),
CURLOPT_HTTPHEADER => [
"API-Key: <api-key>",
"Content-Type: application/json"
],
]);
$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://platform.composo.ai/api/v1/evals/reward"
payload := strings.NewReader("{\n \"messages\": [\n {}\n ],\n \"evaluation_criteria\": \"<string>\",\n \"evaluator_name\": \"<string>\",\n \"model_core\": \"align-20251111\",\n \"tags\": {},\n \"trace_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"system\": \"<string>\",\n \"tools\": [\n {}\n ],\n \"evaluate_latest\": true,\n \"explanation_cleaning\": \"end_user\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("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://platform.composo.ai/api/v1/evals/reward")
.header("API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"messages\": [\n {}\n ],\n \"evaluation_criteria\": \"<string>\",\n \"evaluator_name\": \"<string>\",\n \"model_core\": \"align-20251111\",\n \"tags\": {},\n \"trace_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"system\": \"<string>\",\n \"tools\": [\n {}\n ],\n \"evaluate_latest\": true,\n \"explanation_cleaning\": \"end_user\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform.composo.ai/api/v1/evals/reward")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"messages\": [\n {}\n ],\n \"evaluation_criteria\": \"<string>\",\n \"evaluator_name\": \"<string>\",\n \"model_core\": \"align-20251111\",\n \"tags\": {},\n \"trace_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"system\": \"<string>\",\n \"tools\": [\n {}\n ],\n \"evaluate_latest\": true,\n \"explanation_cleaning\": \"end_user\"\n}"
response = http.request(request)
puts response.read_body{
"explanation": "<string>",
"score": 123,
"cleaned_explanation": "<string>",
"sources": [
{
"id": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Reward
Evaluate LLM output against specified criteria. Score on a continuous 0-1 scale.
curl --request POST \
--url https://platform.composo.ai/api/v1/evals/reward \
--header 'API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"messages": [
{}
],
"evaluation_criteria": "<string>",
"evaluator_name": "<string>",
"model_core": "align-20251111",
"tags": {},
"trace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"system": "<string>",
"tools": [
{}
],
"evaluate_latest": true,
"explanation_cleaning": "end_user"
}
'import requests
url = "https://platform.composo.ai/api/v1/evals/reward"
payload = {
"messages": [{}],
"evaluation_criteria": "<string>",
"evaluator_name": "<string>",
"model_core": "align-20251111",
"tags": {},
"trace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"system": "<string>",
"tools": [{}],
"evaluate_latest": True,
"explanation_cleaning": "end_user"
}
headers = {
"API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
messages: [{}],
evaluation_criteria: '<string>',
evaluator_name: '<string>',
model_core: 'align-20251111',
tags: {},
trace_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
system: '<string>',
tools: [{}],
evaluate_latest: true,
explanation_cleaning: 'end_user'
})
};
fetch('https://platform.composo.ai/api/v1/evals/reward', 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://platform.composo.ai/api/v1/evals/reward",
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([
'messages' => [
[
]
],
'evaluation_criteria' => '<string>',
'evaluator_name' => '<string>',
'model_core' => 'align-20251111',
'tags' => [
],
'trace_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'system' => '<string>',
'tools' => [
[
]
],
'evaluate_latest' => true,
'explanation_cleaning' => 'end_user'
]),
CURLOPT_HTTPHEADER => [
"API-Key: <api-key>",
"Content-Type: application/json"
],
]);
$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://platform.composo.ai/api/v1/evals/reward"
payload := strings.NewReader("{\n \"messages\": [\n {}\n ],\n \"evaluation_criteria\": \"<string>\",\n \"evaluator_name\": \"<string>\",\n \"model_core\": \"align-20251111\",\n \"tags\": {},\n \"trace_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"system\": \"<string>\",\n \"tools\": [\n {}\n ],\n \"evaluate_latest\": true,\n \"explanation_cleaning\": \"end_user\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("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://platform.composo.ai/api/v1/evals/reward")
.header("API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"messages\": [\n {}\n ],\n \"evaluation_criteria\": \"<string>\",\n \"evaluator_name\": \"<string>\",\n \"model_core\": \"align-20251111\",\n \"tags\": {},\n \"trace_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"system\": \"<string>\",\n \"tools\": [\n {}\n ],\n \"evaluate_latest\": true,\n \"explanation_cleaning\": \"end_user\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform.composo.ai/api/v1/evals/reward")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"messages\": [\n {}\n ],\n \"evaluation_criteria\": \"<string>\",\n \"evaluator_name\": \"<string>\",\n \"model_core\": \"align-20251111\",\n \"tags\": {},\n \"trace_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"system\": \"<string>\",\n \"tools\": [\n {}\n ],\n \"evaluate_latest\": true,\n \"explanation_cleaning\": \"end_user\"\n}"
response = http.request(request)
puts response.read_body{
"explanation": "<string>",
"score": 123,
"cleaned_explanation": "<string>",
"sources": [
{
"id": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Body
Request model for reward score evaluation of LLM responses against specified criteria.
How long Composo may keep the content of this request. "standard" stores it as normal. "none" evaluates and returns the score without storing anything but the usage record: no trace, no evaluation row, and a redacted request payload — the same as enabling zero data retention on the account, but for this request only. Such requests do not appear in Insights. Defaults to "standard" — an omitted value must never silently stop data being retained. Resolved against your account setting by most-restrictive-wins, so this can only ever tighten retention, never loosen it.
standard, none Response
Successful Response
Response model for evaluation scores.