CTM Business case update

This commit is contained in:
2026-07-07 08:33:25 -04:00
parent 71b98ee4e4
commit 483bbe61dc
14 changed files with 9028 additions and 0 deletions

View File

@@ -170,6 +170,11 @@ def _monthly_units(site: SiteInput, feature: str, scope: FeatureScope,
# can be used to scope to a subset of interactions (e.g. non-English only).
eligibility = scope.eligibility_pct if scope.eligibility_pct is not None else 1.0
return site.voice_volume_monthly * eligibility # translations
if feature == "Predictive Routing":
# Every predictively-routed voice interaction consumes the PR meter;
# eligibility_pct scopes to the share of volume on PR-enabled queues.
eligibility = scope.eligibility_pct if scope.eligibility_pct is not None else 1.0
return site.voice_volume_monthly * eligibility # routed interactions
raise KeyError(f"No consumption-volume mapping for feature {feature!r}")