Skip to main content
POST
/
v2
/
evaluators
/
execute
/
instruction-adherence
Execute instruction-adherence evaluator
curl --request POST \
  --url https://api.traceloop.com/v2/evaluators/execute/instruction-adherence \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": {
    "instructions": "Respond in exactly 3 bullet points and use formal language.",
    "response": "- First point about the topic\n- Second relevant consideration\n- Final concluding thought"
  }
}
'
{
  "instruction_adherence_score": 0.87
}

Authorizations

Authorization
string
header
required

Type "Bearer" followed by a space and JWT token.

Body

application/json

Request body

input
object
required

Response

OK

instruction_adherence_score
number
Example:

0.87