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

Authorizations

API-Key
string
header
required

Body

application/json

Request model for the reward endpoint.

messages
object[]
required

Chat messages

evaluation_criteria
string
required

Criteria used to evaluate the conversation

Response

200
application/json
Successful Response

Response model for evaluation scores.

score
number | null

Evaluation score between 0 and 1; can be None if score is NaN

explanation
string | null

Explanation of the evaluation score