Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,15 +14,21 @@ def classify_incident(service_criticity: str, disruption: str, affectation_time:
|
|
| 14 |
return "P3" # Default priority
|
| 15 |
|
| 16 |
@tool
|
| 17 |
-
def diagnose_incident(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
"""Determines the severity priority of an incident.
|
| 19 |
|
| 20 |
-
|
| 21 |
-
service_criticity (str):
|
| 22 |
-
disruption (str):
|
| 23 |
-
affectation_time (str):
|
| 24 |
-
magnitude (str):
|
| 25 |
-
workaround (str):
|
| 26 |
|
| 27 |
Returns:
|
| 28 |
str: The classified priority of the incident.
|
|
|
|
| 14 |
return "P3" # Default priority
|
| 15 |
|
| 16 |
@tool
|
| 17 |
+
def diagnose_incident(
|
| 18 |
+
service_criticity: str,
|
| 19 |
+
disruption: str,
|
| 20 |
+
affectation_time: str,
|
| 21 |
+
magnitude: str,
|
| 22 |
+
workaround: str
|
| 23 |
+
) -> str:
|
| 24 |
"""Determines the severity priority of an incident.
|
| 25 |
|
| 26 |
+
Parameters:
|
| 27 |
+
service_criticity (str): High or Low.
|
| 28 |
+
disruption (str): Full, Degraded, or None.
|
| 29 |
+
affectation_time (str): Up 15 mins, Less 15 mins.
|
| 30 |
+
magnitude (str): High, Low, or None.
|
| 31 |
+
workaround (str): Yes or No.
|
| 32 |
|
| 33 |
Returns:
|
| 34 |
str: The classified priority of the incident.
|