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

Function extract_errors

openspace/recording/utils.py:268–272  ·  view source on GitHub ↗
(trajectory: List[Dict[str, Any]])

Source from the content-addressed store, hash-verified

266
267
268def extract_errors(trajectory: List[Dict[str, Any]]) -> List[Dict[str, Any]]:
269 return [
270 step for step in trajectory
271 if step.get("result", {}).get("status") == "error"
272 ]
273
274
275def generate_summary_report(recording_dir: str, output_file: Optional[str] = None) -> str:

Callers 1

generate_summary_reportFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected