{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/studiomeyer-io/json-schema/studiomeyer-io-learning-input-schema.json",
  "title": "LearningInput",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/memory-openapi.json#/components/schemas/LearningInput",
  "type": "object",
  "properties": {
    "category": {
      "type": "string",
      "enum": [
        "pattern",
        "mistake",
        "insight",
        "research",
        "architecture",
        "infrastructure",
        "tool",
        "workflow",
        "performance",
        "security"
      ]
    },
    "content": {
      "type": "string",
      "minLength": 1
    },
    "project": {
      "type": "string"
    },
    "agentId": {
      "type": "string"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "confidence": {
      "type": "number"
    },
    "source": {
      "type": "string"
    },
    "memoryType": {
      "type": "string",
      "enum": [
        "episodic",
        "semantic"
      ]
    },
    "date": {
      "type": "string",
      "description": "Optional event date for backfills. Invalid or future dates fall back to the current time."
    }
  },
  "required": [
    "category",
    "content"
  ]
}