| from pydantic import BaseModel | |
| from typing import List, Optional | |
| class Product(BaseModel): | |
| product_id: str | |
| title: str | |
| description: str | |
| price: float | |
| category: str | |
| tags: Optional[List[str]] = None | |
| from pydantic import BaseModel | |
| from typing import List, Optional | |
| class Product(BaseModel): | |
| product_id: str | |
| title: str | |
| description: str | |
| price: float | |
| category: str | |
| tags: Optional[List[str]] = None | |