pratikshahp commited on
Commit
83e4d01
·
verified ·
1 Parent(s): b4badb1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -46,12 +46,11 @@ def priority_classification_agent(state: State) -> Command[Literal["escalation_c
46
  prompt = (
47
  f"You are a support assistant. Based on the severity, classify the issues "
48
  f"into one of the following categories:\n"
49
- f"1. Urgent: Issues causing significant business impact (e.g., payment gateway failure).\n"
50
  f"2. Critical: Issues needing immediate attention but with manageable impact.\n"
51
  f"3. Normal: Issues that can wait for routine handling.\n\n"
52
  f"Issue: {state['issue_description']}"
53
  )
54
-
55
  #)
56
  priority = llm.invoke(prompt).strip().lower()
57
 
@@ -83,6 +82,9 @@ def generate_response_agent(state: State) -> Dict[str, str]:
83
  return {"response": response, "escalation": escalation}
84
 
85
  # Escalation classification agent
 
 
 
86
  def escalation_classification_agent(state: State) -> Command[Literal["generate_response_agent"]]:
87
  """Classify whether escalation is needed based on priority."""
88
  escalation_needed = state["priority"].lower() in ["urgent", "critical"]
 
46
  prompt = (
47
  f"You are a support assistant. Based on the severity, classify the issues "
48
  f"into one of the following categories:\n"
49
+ f"1. Urgent: Issues causing significant business impact (e.g., payment gateway failure, server down or issues that can not wait as per company's well being).\n"
50
  f"2. Critical: Issues needing immediate attention but with manageable impact.\n"
51
  f"3. Normal: Issues that can wait for routine handling.\n\n"
52
  f"Issue: {state['issue_description']}"
53
  )
 
54
  #)
55
  priority = llm.invoke(prompt).strip().lower()
56
 
 
82
  return {"response": response, "escalation": escalation}
83
 
84
  # Escalation classification agent
85
+
86
+
87
+
88
  def escalation_classification_agent(state: State) -> Command[Literal["generate_response_agent"]]:
89
  """Classify whether escalation is needed based on priority."""
90
  escalation_needed = state["priority"].lower() in ["urgent", "critical"]