MCPcopy Create free account
hub / github.com/HKUDS/OpenSpace / load_all_analyses

Method load_all_analyses

openspace/skill_engine/store.py:819–827  ·  view source on GitHub ↗

Load recent analyses across all tasks.

(self, limit: int = 200)

Source from the content-addressed store, hash-verified

817
818 @_db_retry()
819 def load_all_analyses(self, limit: int = 200) -> List[ExecutionAnalysis]:
820 """Load recent analyses across all tasks."""
821 with self._reader() as conn:
822 rows = conn.execute(
823 "SELECT * FROM execution_analyses "
824 "ORDER BY timestamp DESC LIMIT ?",
825 (limit,),
826 ).fetchall()
827 return [self._to_analysis(conn, r) for r in reversed(rows)]
828
829 @_db_retry()
830 def load_evolution_candidates(

Callers

nothing calls this directly

Calls 3

_readerMethod · 0.95
_to_analysisMethod · 0.95
executeMethod · 0.45

Tested by

no test coverage detected