File size: 1,471 Bytes
25be136
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://example.com/adversarial-memory-bench/case.schema.json",
  "title": "AdversarialMemoryBenchmarkCase",
  "type": "object",
  "required": ["id", "query", "adversary_type", "entries", "relevant_ids"],
  "properties": {
    "id": {"type": "string", "minLength": 1},
    "query": {"type": "string", "minLength": 1},
    "adversary_type": {
      "type": "string",
      "enum": [
        "entity_swap",
        "environment_swap",
        "time_swap",
        "state_update",
        "speaker_swap",
        "near_duplicate_paraphrase"
      ]
    },
    "entries": {
      "type": "array",
      "minItems": 2,
      "items": {
        "type": "object",
        "required": ["id", "text"],
        "properties": {
          "id": {"type": "string", "minLength": 1},
          "text": {"type": "string", "minLength": 1},
          "tags": {
            "type": "array",
            "items": {"type": "string"}
          },
          "depth": {"type": "integer", "minimum": 0},
          "timestamp": {"type": "string"},
          "speaker": {"type": "string"},
          "metadata": {"type": "object"}
        },
        "additionalProperties": false
      }
    },
    "relevant_ids": {
      "type": "array",
      "minItems": 1,
      "items": {"type": "string", "minLength": 1}
    },
    "notes": {"type": "string"},
    "metadata": {"type": "object"}
  },
  "additionalProperties": false
}