Inspect an LLM response before it returns to the user.
Documentation Index
Fetch the complete documentation index at: https://cloudsineai-5cd7c547.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
output-check evaluates an LLM response before it is returned to the user. Detects harmful content and system-prompt leakage.
X-API-Key: <YOUR_API_KEY> — see Authentication.
| Field | Type | Required | Description |
|---|---|---|---|
message | string | Yes | The LLM response to inspect. |
prompt | string | No | The originating prompt. Improves attribution and System Prompt Protection accuracy. |
| Field | Description |
|---|---|
injection_detected | true if any active guardrail flagged the output. |
checks.content_moderation.result | "SAFE" or "UNSAFE". |
checks.content_moderation.category | Harm category if unsafe (e.g., UNETHICAL, VIOLENCE). |
checks.system_prompt_protection.detected | true if the LLM appears to be leaking its system prompt. |
checks.pii.entities | List of detected PII entity types in the response. |
output-check as soon as it is received. See Integration pattern → Streaming.