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" }}'
Copy
Ask AI
{ "instruction_adherence_score": 0.87}
Evaluators
Execute instruction-adherence evaluator
Evaluate how well responses follow given instructions
Request Body:
input.instructions (string, required): The instructions that should be followed
input.response (string, required): The response to evaluate for instruction adherence
POST
/
v2
/
evaluators
/
execute
/
instruction-adherence
Execute instruction-adherence evaluator
Copy
Ask AI
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" }}'