from __future__ import annotations DEFAULT_ENCODER = "microsoft/deberta-v3-small" DEFAULT_MAX_LENGTH = 256 DEFAULT_RECENCY_MAX = 3600 ACTION_VOCAB = [ "none", "create", "update", "send", "store", "route", "schedule", "dismissed", "clarify", "search", "notify", "cancel", "complete", "other", ] OUTCOME_VOCAB = ["success", "pending", "failed", "cancelled", "unknown"] HEAD_LABELS = { "relation_to_previous": [ "new", "follow_up", "correction", "confirmation", "cancellation", "closure", ], "actionability": ["none", "review", "act"], "retention": ["ephemeral", "useful", "remember"], "urgency": ["low", "medium", "high"], } FEATURE_MODES = [ "current_text_only", "current_plus_previous_text", "full_interaction", ] INTERACTION_SENTINELS = { "previous_text": "", "previous_action": "none", "previous_outcome": "unknown", "recency_seconds": -1, }