ressay1973 commited on
Commit
ce210c3
·
verified ·
1 Parent(s): bb33f25

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -7
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(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.
 
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.