MCPcopy Index your code
hub / github.com/algorithmicsuperintelligence/openevolve / api_task_detail

Function api_task_detail

scripts/manual.py:145–157  ·  view source on GitHub ↗
(task_id: str)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 4

_resolve_run_rootFunction · 0.85
_queue_dirFunction · 0.85
_read_taskFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected