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

Function api_tasks

scripts/manual.py:137–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135
136 @bp.get("/api/tasks")
137 def api_tasks():
138 run_root = _resolve_run_root(get_visualizer_path())
139 qdir = _queue_dir(run_root)
140 items = _list_tasks(qdir)
141 data = [{"id": t.id, "created_at": t.created_at, "model": t.model} for t in items]
142 return jsonify({"tasks": data})
143
144 @bp.get("/api/tasks/<task_id>")
145 def api_task_detail(task_id: str):

Callers

nothing calls this directly

Calls 3

_resolve_run_rootFunction · 0.85
_queue_dirFunction · 0.85
_list_tasksFunction · 0.85

Tested by

no test coverage detected