{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/foresea-ink/json-schema/foresea-ink-personal-ledger-entry-schema.json",
  "title": "PersonalLedgerEntry",
  "description": "One forecast a signed-in user explicitly saved from a chat response.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/foresea-ink-auth-api-openapi.yml#/components/schemas/PersonalLedgerEntry",
  "properties": {
    "id": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1,
      "pattern": "^[A-Za-z0-9:_\\-]+$",
      "title": "Id"
    },
    "conversation_id": {
      "type": "string",
      "maxLength": 120,
      "title": "Conversation Id",
      "default": ""
    },
    "message_id": {
      "type": "string",
      "maxLength": 120,
      "title": "Message Id",
      "default": ""
    },
    "question": {
      "type": "string",
      "maxLength": 800,
      "minLength": 1,
      "title": "Question"
    },
    "predicted_answer": {
      "type": "string",
      "maxLength": 120,
      "title": "Predicted Answer",
      "default": ""
    },
    "probability": {
      "type": "number",
      "maximum": 1.0,
      "minimum": 0.0,
      "title": "Probability"
    },
    "rationale": {
      "type": "string",
      "maxLength": 8000,
      "title": "Rationale",
      "default": ""
    },
    "model": {
      "type": "string",
      "maxLength": 160,
      "title": "Model",
      "default": ""
    },
    "createdAt": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Createdat"
    },
    "user_verdict": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "correct",
            "wrong"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "User Verdict"
    },
    "judgedAt": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Judgedat"
    }
  },
  "type": "object",
  "required": [
    "id",
    "question",
    "probability",
    "createdAt"
  ]
}