Spaces:
Sleeping
Sleeping
File size: 496 Bytes
d6a76d5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
#app/models.py
from pydantic import BaseModel
from typing import List, Dict, Optional
class Observation(BaseModel):
ticket_id: str
customer_message: str
history: List[str]
known_info: Dict
#missing_info: List[str]
status: str
step_count: int
remaining_steps: int
class Action(BaseModel):
action_type: str
content: Optional[str] = ""
metadata: Optional[Dict] = {}
class Reward(BaseModel):
value: float
reason: str |