cURL
curl --request POST \ --url https://api.enkryptai.com/guardrails/adherence \ --header 'Content-Type: application/json' \ --header 'apikey: <api-key>' \ --data ' { "llm_answer": "<string>", "context": "<string>" } '
{ "summary": { "adherence_score": 0.5 }, "details": { "atomic_facts": [ "<string>" ], "adherence_list": [ 123 ], "adherence_response": "<string>", "adherence_latency": 123 } }
Successful Response
Show child attributes
Overall adherence score between 0 and 1
0 <= x <= 1
List of extracted atomic facts
Individual adherence scores for each fact
Detailed adherence analysis in JSON format
Processing time in seconds