File size: 10,855 Bytes
61df2a8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
[
  {
    "node_id": "0d0b614c",
    "tool": {
      "type": "function",
      "function": {
        "name": "get_latest_performance_snapshot",
        "description": "Retrieves the most recent Performance Snapshot generated for the authorized ServiceProvider.",
        "parameters": {
          "type": "object",
          "properties": {},
          "required": []
        }
      }
    }
  },
  {
    "node_id": "12ac26a9",
    "tool": {
      "type": "function",
      "function": {
        "name": "calculate_provider_rating_trend",
        "description": "Calculates the rating trend (improving/stable/declining) for the authorized ServiceProvider over a specified period.",
        "parameters": {
          "type": "object",
          "properties": {
            "period_months": {
              "type": "integer",
              "description": "Number of months to look back for the trend analysis."
            }
          },
          "required": [
            "period_months"
          ]
        }
      }
    }
  },
  {
    "node_id": "23236bd6",
    "tool": {
      "type": "function",
      "function": {
        "name": "get_review_analyst_insights",
        "description": "For a given ServiceReview ID, retrieves the Analyst insights and assignment details if analysis is complete.",
        "parameters": {
          "type": "object",
          "properties": {
            "review_id": {
              "type": "string",
              "description": "The ID of the ServiceReview to get insights for."
            }
          },
          "required": [
            "review_id"
          ]
        }
      }
    }
  },
  {
    "node_id": "45e79723",
    "tool": {
      "type": "function",
      "function": {
        "name": "analyst_assign_review_for_analysis",
        "description": "Allows an Analyst to assign themselves or be assigned a specific ServiceReview for insight generation.",
        "parameters": {
          "type": "object",
          "properties": {
            "review_id": {
              "type": "string",
              "description": "The ID of the ServiceReview to assign."
            },
            "provider_id": {
              "type": "string",
              "description": "The ID of the ServiceProvider who received the review."
            }
          },
          "required": [
            "review_id",
            "provider_id"
          ]
        }
      }
    }
  },
  {
    "node_id": "4cfe4761",
    "tool": {
      "type": "function",
      "function": {
        "name": "get_audit_status_for_review",
        "description": "Checks the audit status and verdict for a specific ServiceReview belonging to the provider.",
        "parameters": {
          "type": "object",
          "properties": {
            "review_id": {
              "type": "string",
              "description": "The ID of the ServiceReview to check audit status for."
            }
          },
          "required": [
            "review_id"
          ]
        }
      }
    }
  },
  {
    "node_id": "5b06e029",
    "tool": {
      "type": "function",
      "function": {
        "name": "analyst_search_providers_by_metric",
        "description": "Allows an Analyst to search for ServiceProviders based on performance metrics like rating average or trend.",
        "parameters": {
          "type": "object",
          "properties": {
            "min_rating_average": {
              "type": "number",
              "description": "Minimum rating_average to filter providers."
            },
            "service_category": {
              "type": "string",
              "description": "Optional service category to filter providers."
            },
            "trend_indicator": {
              "type": "string",
              "description": "Optional trend indicator to filter providers."
            }
          },
          "required": [
            "min_rating_average",
            "service_category",
            "trend_indicator"
          ]
        }
      }
    }
  },
  {
    "node_id": "6de638d9",
    "tool": {
      "type": "function",
      "function": {
        "name": "authorize_service_provider_for_insight_generation",
        "description": "Authorizes a ServiceProvider to access the insight generation system using their unique ID.",
        "parameters": {
          "type": "object",
          "properties": {
            "provider_id": {
              "type": "string",
              "description": "The unique identifier of the ServiceProvider."
            }
          },
          "required": [
            "provider_id"
          ]
        }
      }
    }
  },
  {
    "node_id": "77d8cc71",
    "tool": {
      "type": "function",
      "function": {
        "name": "analyst_generate_performance_snapshot",
        "description": "Allows an Analyst to generate a new Performance Snapshot for a ServiceProvider based on recent reviews.",
        "parameters": {
          "type": "object",
          "properties": {
            "provider_id": {
              "type": "string",
              "description": "The ID of the ServiceProvider for the snapshot."
            },
            "snapshot_period_end": {
              "type": "string",
              "description": "The end date of the period covered by the snapshot."
            },
            "review_id_list": {
              "type": "array",
              "description": "List of Review IDs to include in the snapshot calculation."
            }
          },
          "required": [
            "provider_id",
            "snapshot_period_end",
            "review_id_list"
          ]
        }
      }
    }
  },
  {
    "node_id": "7cb60247",
    "tool": {
      "type": "function",
      "function": {
        "name": "list_scheduled_consultations",
        "description": "Lists all upcoming and past consultation sessions for the authorized ServiceProvider.",
        "parameters": {
          "type": "object",
          "properties": {
            "include_past": {
              "type": "boolean",
              "description": "Whether to include past consultations in the results."
            }
          },
          "required": [
            "include_past"
          ]
        }
      }
    }
  },
  {
    "node_id": "85464583",
    "tool": {
      "type": "function",
      "function": {
        "name": "schedule_analyst_consultation",
        "description": "Schedules a new consultation session between the authorized ServiceProvider and an available Analyst for a specific topic.",
        "parameters": {
          "type": "object",
          "properties": {
            "preferred_analyst_domain": {
              "type": "string",
              "description": "Preferred Analyst specialization domain for the consultation."
            },
            "consultation_topic": {
              "type": "string",
              "description": "The primary topic for the consultation."
            },
            "preferred_date_window": {
              "type": "string",
              "description": "Preferred start date for the consultation (ISO 8601)."
            }
          },
          "required": [
            "preferred_analyst_domain",
            "consultation_topic",
            "preferred_date_window"
          ]
        }
      }
    }
  },
  {
    "node_id": "90e59908",
    "tool": {
      "type": "function",
      "function": {
        "name": "list_provider_reviews",
        "description": "Retrieves all ServiceReview records assigned to the authorized ServiceProvider.",
        "parameters": {
          "type": "object",
          "properties": {
            "timeframe_start": {
              "type": "string",
              "description": "Optional start date to filter reviews (ISO 8601)."
            },
            "timeframe_end": {
              "type": "string",
              "description": "Optional end date to filter reviews (ISO 8601)."
            }
          },
          "required": [
            "timeframe_start",
            "timeframe_end"
          ]
        }
      }
    }
  },
  {
    "node_id": "acc4c2cf",
    "tool": {
      "type": "function",
      "function": {
        "name": "analyst_get_assigned_reviews",
        "description": "Retrieves all ServiceReview records currently assigned to the authorized Analyst for analysis.",
        "parameters": {
          "type": "object",
          "properties": {
            "status_filter": {
              "type": "string",
              "description": "Optional filter to get assignments with a specific status."
            }
          },
          "required": [
            "status_filter"
          ]
        }
      }
    }
  },
  {
    "node_id": "bd38c39a",
    "tool": {
      "type": "function",
      "function": {
        "name": "analyst_perform_review_audit",
        "description": "Allows an Analyst to perform a quality/compliance audit on a ServiceReview and record the verdict.",
        "parameters": {
          "type": "object",
          "properties": {
            "review_id": {
              "type": "string",
              "description": "The ID of the ServiceReview to audit."
            },
            "provider_id": {
              "type": "string",
              "description": "The ID of the ServiceProvider who received the review."
            },
            "audit_verdict": {
              "type": "string",
              "description": "The analyst's verdict on the review's authenticity and quality."
            },
            "compliance_issues": {
              "type": "array",
              "description": "Optional list of compliance issue codes found."
            }
          },
          "required": [
            "review_id",
            "provider_id",
            "audit_verdict",
            "compliance_issues"
          ]
        }
      }
    }
  },
  {
    "node_id": "ff1009dc",
    "tool": {
      "type": "function",
      "function": {
        "name": "analyst_update_insight_assignment",
        "description": "Allows an Analyst to update the status of an insight assignment they are working on.",
        "parameters": {
          "type": "object",
          "properties": {
            "insight_assignment_id": {
              "type": "string",
              "description": "The ID of the insight assignment to update."
            },
            "new_status": {
              "type": "string",
              "description": "The new analysis completion status."
            },
            "insight_summary": {
              "type": "string",
              "description": "Optional text summary of the insights generated (required if status is 'completed')."
            }
          },
          "required": [
            "insight_assignment_id",
            "new_status",
            "insight_summary"
          ]
        }
      }
    }
  }
]