| 295 | ) |
| 296 | |
| 297 | |
| 298 | def _api_feedback(_query_params: Dict[str, Any], body: Dict[str, Any]) -> Dict[str, Any]: |
| 299 | user_id = str(body.get("user_id") or "").strip() |
| 300 | push_id = str(body.get("push_id") or "").strip() |
| 301 | if not user_id or not push_id: |
| 302 | raise ValueError("user_id and push_id are required") |
| 303 | return agents.submit_gui_feedback( |
| 304 | user_id=user_id, |
| 305 | push_id=push_id, |
| 306 | selected_numbers=body.get("selected_numbers") or [], |
| 307 | skipped_numbers=body.get("skipped_numbers") or [], |
| 308 | later_numbers=body.get("later_numbers") or [], |
| 309 | ) |
| 310 | |
| 311 | |