{"error": "INVALID_SCORING_WEIGHT", "message": "Weight sum exceeds 1.0 for tie-breaking heuristic"}
genesyscloud-python rejects the routing simulation request despite normalizing the proficiency and satisfaction weights. The custom scoring function calculates agent rankings using a dynamic weight adjustment based on campaign SLAs, but the API complains about the tie-breaking scenario. We’re passing the least_queue_time heuristic in the tie_breaker field, and the sum is definitely 0.999. The agent_availability query returns valid skill matrices, so the input data looks clean.
The fairness report generation fails silently after the simulation completes. Here’s the snippet handling the weight calculation:
def calculate_ranking(agent, weights):
score = (agent.proficiency * weights['prof']) + (agent.lang_match * weights['lang'])
if score == max_scores:
return agent.queue_time
return score
The simulation endpoint /api/v2/routing/simulation is supposed to expose results for QA testing. The bias_detection flag is enabled, but the response payload omits the fairness metrics. genesyscloud-python documentation doesn’t mention this limitation for custom scoring functions. The fairness_report key is absent. Response structure looks truncated.
The release notes from last month actually mention this shift in the scoring engine. Checking the