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

Method history

uncommon_route/spend_control.py:252–254  ·  view source on GitHub ↗
(self, limit: int | None = None)

Source from the content-addressed store, hash-verified

250 )
251
252 def history(self, limit: int | None = None) -> list[SpendRecord]:
253 records = list(reversed(self._history))
254 return records[:limit] if limit else records
255
256 def reset_session(self) -> None:
257 self._session_spent = 0.0

Callers 2

test_save_and_reloadMethod · 0.95
_cmd_spendFunction · 0.95

Calls

no outgoing calls

Tested by 1

test_save_and_reloadMethod · 0.76