File size: 366 Bytes
bd67155 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | from __future__ import annotations
from ..models import StateModel, TaskGrade, TaskSpec
from .common import grade_single_ticket
WEIGHTS = {
"context": 0.2,
"priority": 0.2,
"route": 0.25,
"resolution": 0.2,
"escalation": 0.15,
}
def grade(task: TaskSpec, state: StateModel) -> TaskGrade:
return grade_single_ticket(task, state, WEIGHTS)
|