File size: 4,170 Bytes
c5f5de4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
[
  {
    "type": "function",
    "function": {
      "name": "get_initial_symptom_overview",
      "description": "Summarize anomalous anonymous entities and graph dimensions.",
      "parameters": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      },
      "strict": false
    }
  },
  {
    "type": "function",
    "function": {
      "name": "get_topology_neighbors",
      "description": "Return ranked call and deployment neighbors within 1 or 2 hops.",
      "parameters": {
        "type": "object",
        "properties": {
          "entity_id": {
            "type": "string",
            "pattern": "^(SVC|INST|HOST)_[0-9]{2,}$"
          },
          "hop": {
            "type": "integer",
            "enum": [
              1,
              2
            ],
            "default": 1
          }
        },
        "required": [
          "entity_id"
        ],
        "additionalProperties": false
      },
      "strict": false
    }
  },
  {
    "type": "function",
    "function": {
      "name": "query_entity_metrics",
      "description": "Return nine normalized metric slots with baseline, detection and anomaly summaries.",
      "parameters": {
        "type": "object",
        "properties": {
          "entity_id": {
            "type": "string",
            "pattern": "^(SVC|INST|HOST)_[0-9]{2,}$"
          }
        },
        "required": [
          "entity_id"
        ],
        "additionalProperties": false
      },
      "strict": false
    }
  },
  {
    "type": "function",
    "function": {
      "name": "query_call_edge_detail",
      "description": "Return baseline/detection call statistics for one directed observed edge.",
      "parameters": {
        "type": "object",
        "properties": {
          "caller_id": {
            "type": "string",
            "pattern": "^(SVC|INST|HOST)_[0-9]{2,}$"
          },
          "callee_id": {
            "type": "string",
            "pattern": "^(SVC|INST|HOST)_[0-9]{2,}$"
          }
        },
        "required": [
          "caller_id",
          "callee_id"
        ],
        "additionalProperties": false
      },
      "strict": false
    }
  },
  {
    "type": "function",
    "function": {
      "name": "query_entity_events",
      "description": "Return the highest-frequency sanitized event templates for one entity.",
      "parameters": {
        "type": "object",
        "properties": {
          "entity_id": {
            "type": "string",
            "pattern": "^(SVC|INST|HOST)_[0-9]{2,}$"
          },
          "top_k": {
            "type": "integer",
            "minimum": 1,
            "default": 5
          }
        },
        "required": [
          "entity_id"
        ],
        "additionalProperties": false
      },
      "strict": false
    }
  },
  {
    "type": "function",
    "function": {
      "name": "submit_diagnosis",
      "description": "Submit the terminal anonymous diagnosis and supporting evidence IDs.",
      "parameters": {
        "type": "object",
        "properties": {
          "root_entity_id": {
            "type": "string",
            "pattern": "^(SVC|INST|HOST)_[0-9]{2,}$"
          },
          "fault_category": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "propagation_path": {
            "type": "array",
            "maxItems": 80,
            "items": {
              "type": "array",
              "minItems": 2,
              "maxItems": 2,
              "items": {
                "type": "string",
                "pattern": "^(SVC|INST|HOST)_[0-9]{2,}$"
              }
            }
          },
          "key_evidence_ids": {
            "type": "array",
            "maxItems": 40,
            "items": {
              "type": "string",
              "pattern": "^EV_[0-9a-f]{12}$"
            }
          }
        },
        "required": [
          "root_entity_id",
          "fault_category",
          "propagation_path",
          "key_evidence_ids"
        ],
        "additionalProperties": false
      },
      "strict": false
    }
  }
]