{
  "$ref": "#/definitions/MemoryAddInput",
  "definitions": {
    "MemoryAddInput": {
      "type": "object",
      "properties": {
        "content": {
          "type": "string",
          "minLength": 1
        },
        "layer": {
          "type": "string",
          "enum": [
            "stm",
            "ltm",
            "episodic",
            "semantic",
            "documentary"
          ]
        },
        "metadata": {
          "type": "object",
          "properties": {},
          "additionalProperties": {},
          "default": {}
        },
        "importance": {
          "type": "number",
          "minimum": 0,
          "maximum": 1
        },
        "sessionId": {
          "type": "string"
        },
        "episodeId": {
          "type": "string"
        },
        "summary": {
          "type": "string"
        }
      },
      "required": [
        "content",
        "layer"
      ],
      "additionalProperties": false
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}