Spaces:
Sleeping
Sleeping
File size: 1,020 Bytes
51fe7a3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | from typing import Dict, Any
ACTION_SCHEMA: Dict[str, Any] = {
"action_type": {
"type": "string",
"enum": ["classify", "respond", "escalate", "archive", "skip"],
"required": True,
},
"category": {
"type": "string",
"enum": [
"billing",
"technical",
"general",
"spam",
"account",
"feature_request",
],
"required": False,
},
"urgency": {"type": "string", "enum": ["high", "medium", "low"], "required": False},
"response_text": {
"type": "string",
"required": False,
"description": "Used with action_type=respond",
},
"escalation_reason": {
"type": "string",
"required": False,
"description": "Used with action_type=escalate",
},
"email_id": {
"type": "string",
"required": False,
"description": "Target email ID; used in support_session to select which email to process",
},
}
|