Spaces:
Sleeping
Sleeping
Update app.py
Browse files14 unmodified lines1516171819202114 unmodified lines@tooldef diagnose_incident(service_criticity: str, disruption: str, affectation_time: str, magnitude: str, workaround: str) -> str:"""Determines the severity priority of an incident."""priority = classify_incident(service_criticity, disruption, affectation_time, magnitude, workaround)return f"Incident classified as priority: {priority}"14 unmodified lines15161718192021222324252627282930313214 unmodified lines@tooldef diagnose_incident(service_criticity: str, disruption: str, affectation_time: str, magnitude: str, workaround: str) -> str:"""Determines the severity priority of an incident.Args:service_criticity (str): The criticality level of the service (High or Low).disruption (str): The type of disruption (Full, Degraded, or None).affectation_time (str): Duration of the affectation (Up 15 mins, Less 15 mins).magnitude (str): The magnitude of the incident (High, Low, or None).workaround (str): Whether a workaround exists (Yes or No).Returns:str: The classified priority of the incident."""priority = classify_incident(service_criticity, disruption, affectation_time, magnitude, workaround)return f"Incident classified as priority: {priority}"
app.py+12-1