POST
/
api
/
v1
/
evals
/
binary
curl --request POST \
  --url https://platform.composo.ai/api/v1/evals/binary \
  --header 'API-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "messages": [
    {
      "role": "<string>",
      "content": "<string>"
    }
  ],
  "reference_output": "<string>",
  "evaluation_criteria": "<string>",
  "evaluate_latest": true
}'
{
  "passed": true,
  "explanation": "<string>"
}

Authorizations

API-Key
string
header
required

Body

application/json

Request model for binary evaluation of LLM outputs.

messages
object[]
required

List of conversation messages

evaluation_criteria
string
required

Criteria used for evaluation

reference_output
string | null

Optional reference output for comparison

evaluate_latest
boolean | null
default:
true

Whether to evaluate the latest response only

Response

200
application/json
Successful Response

Response model for binary evaluation results.

passed
boolean
required

Whether the evaluation passed

explanation
string | null

Explanation of the evaluation