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

Method load_analyses_for_task

openspace/skill_engine/store.py:807–816  ·  view source on GitHub ↗

Load the analysis for a specific task, or None.

(
        self, task_id: str
    )

Source from the content-addressed store, hash-verified

805
806 @_db_retry()
807 def load_analyses_for_task(
808 self, task_id: str
809 ) -> Optional[ExecutionAnalysis]:
810 """Load the analysis for a specific task, or None."""
811 with self._reader() as conn:
812 row = conn.execute(
813 "SELECT * FROM execution_analyses WHERE task_id=?",
814 (task_id,),
815 ).fetchone()
816 return self._to_analysis(conn, row) if row else None
817
818 @_db_retry()
819 def load_all_analyses(self, limit: int = 200) -> List[ExecutionAnalysis]:

Callers 1

analyze_executionMethod · 0.80

Calls 3

_readerMethod · 0.95
_to_analysisMethod · 0.95
executeMethod · 0.45

Tested by

no test coverage detected