Spaces:
Sleeping
Sleeping
Download app/models.py from prashantmatlani/csa01: direct link, hf CLI and curl.
- Browser
- Download file 496 Bytes
-
https://huggingface.co/spaces/prashantmatlani/csa01/resolve/main/app/models.py
- Command line
-
hf download hf://spaces/prashantmatlani/csa01/app/models.py
-
curl -L -o models.py https://huggingface.co/spaces/prashantmatlani/csa01/resolve/main/app/models.py
496 Bytes
| #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 |