merge: T77 AddresseeDecision.confidence as Literal

This commit is contained in:
Joseph Doherty
2026-04-26 21:42:24 -04:00
2 changed files with 38 additions and 1 deletions
+3 -1
View File
@@ -22,6 +22,8 @@ from a fallback.
from __future__ import annotations
from typing import Literal
from pydantic import BaseModel
from chat.llm.classify import classify
@@ -39,7 +41,7 @@ class AddresseeDecision(BaseModel):
"""
addressee_id: str
confidence: str = "medium" # "high" | "medium" | "low"
confidence: Literal["high", "medium", "low"] = "medium"
reason: str = ""