Spaces:
Runtime error
Runtime error
Download src/models.py from animeshkcm/Multi-Agent-Customer-Support: direct link, hf CLI and curl.
- Browser
- Download file 693 Bytes
-
https://huggingface.co/spaces/animeshkcm/Multi-Agent-Customer-Support/resolve/main/src/models.py
- Command line
-
hf download hf://spaces/animeshkcm/Multi-Agent-Customer-Support/src/models.py
-
curl -L -o models.py https://huggingface.co/spaces/animeshkcm/Multi-Agent-Customer-Support/resolve/main/src/models.py
693 Bytes
| from typing import List | |
| from pydantic import BaseModel, Field | |
| class UserInput(BaseModel): | |
| identifier: str = Field( | |
| default="", | |
| description=( | |
| "Identifier: can be a customer ID (numeric), " | |
| "email address (contains @), or phone number (starts with + or contains digits). " | |
| "Return empty string if no identifier is found in the message." | |
| ), | |
| ) | |
| class UserProfile(BaseModel): | |
| customer_id: str = Field(description="The customer ID of the customer") | |
| music_preferences: List[str] = Field( | |
| default_factory=list, | |
| description="The music preferences of the customer (artists, genres, albums they like)", | |
| ) | |