(task_id: str)
| 143 | |
| 144 | @bp.get("/api/tasks/<task_id>") |
| 145 | def api_task_detail(task_id: str): |
| 146 | run_root = _resolve_run_root(get_visualizer_path()) |
| 147 | qdir = _queue_dir(run_root) |
| 148 | data = _read_task(qdir, task_id) |
| 149 | if data is None: |
| 150 | return ("Task not found", 404) |
| 151 | |
| 152 | return jsonify({ |
| 153 | "id": data.get("id"), |
| 154 | "created_at": data.get("created_at"), |
| 155 | "model": data.get("model"), |
| 156 | "display_prompt": data.get("display_prompt", ""), |
| 157 | }) |
| 158 | |
| 159 | @bp.post("/api/tasks/<task_id>/answer") |
| 160 | def api_task_answer(task_id: str): |
nothing calls this directly
no test coverage detected