fix: AddresseeDecision.confidence as Literal[high|medium|low] (T77)
This commit is contained in:
@@ -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 = ""
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user