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

Method recent

uncommon_route/traces.py:448–452  ·  view source on GitHub ↗
(self, limit: int = 50, *, errors_only: bool = False)

Source from the content-addressed store, hash-verified

446 return [_trace_payload(record) for record in records]
447
448 def recent(self, limit: int = 50, *, errors_only: bool = False) -> list[dict[str, Any]]:
449 records = self.history()
450 if errors_only:
451 records = [record for record in records if record.error_code or record.status_code >= 400]
452 return [_trace_payload(record) for record in records[:limit]]
453
454 def find(self, request_id: str) -> dict[str, Any] | None:
455 target = str(request_id or "").strip()

Calls 2

historyMethod · 0.95
_trace_payloadFunction · 0.85