fix: AddresseeDecision.confidence as Literal[high|medium|low] (T77)

This commit is contained in:
Joseph Doherty
2026-04-26 21:40:47 -04:00
parent fb7e97260b
commit 4199038b8b
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 = ""