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

Method recent

uncommon_route/stats.py:329–332  ·  view source on GitHub ↗

Most recent routed requests that carry a request_id (for feedback).

(self, limit: int = 30)

Source from the content-addressed store, hash-verified

327 return [_record_payload(record) for record in records]
328
329 def recent(self, limit: int = 30) -> list[dict[str, Any]]:
330 """Most recent routed requests that carry a request_id (for feedback)."""
331 records = [r for r in reversed(self._records) if r.request_id]
332 return [record_to_recent_dict(r) for r in records[:limit]]
333
334 def summary(self) -> StatsSummary:
335 if not self._records:

Callers 3

_recent_errors_payloadFunction · 0.45
handle_recentFunction · 0.45
handle_tracesFunction · 0.45

Calls 1

record_to_recent_dictFunction · 0.85

Tested by

no test coverage detected