{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getorquesta-com/json-schema/getorquesta-com-log-entry-schema.json",
  "title": "LogEntry",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/getorquesta-com-logs-api-openapi.yml#/components/schemas/LogEntry",
  "type": "object",
  "required": [
    "id",
    "promptId",
    "level",
    "category",
    "timestamp"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "promptId": {
      "type": "string",
      "format": "uuid"
    },
    "level": {
      "type": "string",
      "enum": [
        "debug",
        "info",
        "warn",
        "error"
      ]
    },
    "category": {
      "type": "string",
      "description": "e.g. tool, system, chat, summary"
    },
    "message": {
      "type": [
        "string",
        "null"
      ],
      "description": "Truncated at 10K chars. Full content is in `details`."
    },
    "details": {
      "type": [
        "object",
        "null"
      ],
      "description": "Structured payload (tool_result, command output, etc.)"
    },
    "durationMs": {
      "type": [
        "integer",
        "null"
      ]
    },
    "sequence": {
      "type": "integer",
      "description": "Monotonically increasing within a prompt"
    },
    "timestamp": {
      "type": "string",
      "format": "date-time"
    }
  }
}