Response model for add feedback operation based on actual API.
| 1270 | |
| 1271 | |
| 1272 | class MemOSAddFeedBackResponse(BaseModel): |
| 1273 | """Response model for add feedback operation based on actual API.""" |
| 1274 | |
| 1275 | code: int = Field(..., description="Response status code") |
| 1276 | message: str = Field(..., description="Response message") |
| 1277 | data: AddMessageData = Field(..., description="Add operation data") |
| 1278 | |
| 1279 | @property |
| 1280 | def success(self) -> bool: |
| 1281 | """Convenient access to success status.""" |
| 1282 | return self.data.success |
| 1283 | |
| 1284 | @property |
| 1285 | def task_id(self) -> str: |
| 1286 | """Convenient access to task_id status.""" |
| 1287 | return self.data.task_id |
| 1288 | |
| 1289 | @property |
| 1290 | def status(self) -> str: |
| 1291 | """Convenient access to status status.""" |
| 1292 | return self.data.status |
| 1293 | |
| 1294 | |
| 1295 | # ─── Scheduler Status Models ─────────────────────────────────────────────────── |