MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / load_content

Method load_content

uncommon_route/traces.py:526–533  ·  view source on GitHub ↗
(self, request_id: str)

Source from the content-addressed store, hash-verified

524 }
525
526 def load_content(self, request_id: str) -> dict[str, Any] | None:
527 for r in self._records:
528 if r.request_id == request_id:
529 cold = self._storage.load_for_request(request_id, r.timestamp)
530 if cold is None:
531 return None
532 return {f: cold.get(f) for f in COLD_FIELDS}
533 return None
534
535 def _cleanup(self) -> None:
536 cutoff_ts = self._now() - (self._hot_days * 86400.0)

Calls 2

load_for_requestMethod · 0.45
getMethod · 0.45

Tested by 1