cURL
Interactive Example
curl --request POST \ --url https://app.langwatch.ai/api/evaluations/huggingface/llama_guard/evaluate \ --header 'Content-Type: application/json' \ --header 'X-Auth-Token: <api-key>' \ --data '{ "data": { "input": "<string>", "output": "<string>" }}'
[ { "status": "processed", "score": 123, "passed": true, "label": "<string>", "details": "<string>", "cost": { "currency": "<string>", "amount": 123 }, "raw_response": {}, "error_type": "<string>", "traceback": [ "<string>" ] } ]
This evaluator is a special version of Llama trained strictly for acting as a guardrail, following customizable guidelines. It can work both as a safety evaluator and as policy enforcement.
Successful evaluation
The response is of type object[].
object[]
Was this page helpful?