{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/overwing-ai/json-schema/overwing-ai-evaluate-request-schema.json",
  "title": "EvaluateRequest",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/overwing-ai-openapi.json#/components/schemas/EvaluateRequest",
  "type": "object",
  "required": [
    "input",
    "rule_set"
  ],
  "properties": {
    "input": {
      "type": "string",
      "maxLength": 100000,
      "description": "The LLM output (or any text) to evaluate. The input can be in any language the model reads. Tested on 2026-09-29 in Spanish, Portuguese, French, German, Japanese, Chinese (Simplified), Korean, Arabic and Hindi: 7 checks in each, and every verdict matched the English one. A small test, not a benchmark: the texts were written by a model and have not been reviewed by native speakers. Responses are in English whatever the input language."
    },
    "rule_set": {
      "type": "string",
      "description": "Rule set slug. Prebuilt: content-safety (toxicity, PII, self-harm, sexual content, severity) and outbound-message (adds unauthorized_pii and confidential_leak, and reads the context object)"
    },
    "metadata": {
      "type": "object",
      "additionalProperties": true,
      "description": "Opaque context echoed back and stored with the evaluation"
    },
    "context": {
      "type": "object",
      "additionalProperties": true,
      "description": "Structured facts about the situation, passed to the model as state next to the text so rules can reference them: e.g. { recipient: \"known customer\", channel: \"email\", owns_contact_info: true }. Max 8 KB."
    },
    "store": {
      "type": "boolean",
      "description": "False runs the check without keeping the input text or the context: the record holds the verdict, scores and metadata only. It cannot turn storage back on when the organization has store_inputs off (PATCH /api/v1/org). The response header X-Input-Stored says which happened."
    }
  }
}