MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / get_latest_checkpoint

Function get_latest_checkpoint

core/checkpoint.py:270–274  ·  view source on GitHub ↗

Get the most recent checkpoint ID.

()

Source from the content-addressed store, hash-verified

268
269
270def get_latest_checkpoint() -> Optional[str]:
271 """Get the most recent checkpoint ID."""
272 state = get_state_store()
273 checkpoints = state.get_checkpoints(1)
274 return checkpoints[0]["id"] if checkpoints else None
275
276
277def prune_checkpoints(keep_count: int = 5):

Callers

nothing calls this directly

Calls 2

get_state_storeFunction · 0.90
get_checkpointsMethod · 0.80

Tested by

no test coverage detected