Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,18 @@ def classify_incident(service_criticity: str, disruption: str, affectation_time:
|
|
| 15 |
|
| 16 |
@tool
|
| 17 |
def diagnose_incident(service_criticity: str, disruption: str, affectation_time: str, magnitude: str, workaround: str) -> str:
|
| 18 |
-
"""Determines the severity priority of an incident.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
priority = classify_incident(service_criticity, disruption, affectation_time, magnitude, workaround)
|
| 20 |
return f"Incident classified as priority: {priority}"
|
| 21 |
|
|
|
|
| 15 |
|
| 16 |
@tool
|
| 17 |
def diagnose_incident(service_criticity: str, disruption: str, affectation_time: str, magnitude: str, workaround: str) -> str:
|
| 18 |
+
"""Determines the severity priority of an incident.
|
| 19 |
+
|
| 20 |
+
Args:
|
| 21 |
+
service_criticity (str): The criticality level of the service (High or Low).
|
| 22 |
+
disruption (str): The type of disruption (Full, Degraded, or None).
|
| 23 |
+
affectation_time (str): Duration of the affectation (Up 15 mins, Less 15 mins).
|
| 24 |
+
magnitude (str): The magnitude of the incident (High, Low, or None).
|
| 25 |
+
workaround (str): Whether a workaround exists (Yes or No).
|
| 26 |
+
|
| 27 |
+
Returns:
|
| 28 |
+
str: The classified priority of the incident.
|
| 29 |
+
"""
|
| 30 |
priority = classify_incident(service_criticity, disruption, affectation_time, magnitude, workaround)
|
| 31 |
return f"Incident classified as priority: {priority}"
|
| 32 |
|