MCPcopy Create free account
hub / github.com/GuDaStudio/GrokSearch / __init__

Method __init__

src/grok_search/sources.py:33–36  ·  view source on GitHub ↗
(self, max_size: int = 256)

Source from the content-addressed store, hash-verified

31
32class SourcesCache:
33 def __init__(self, max_size: int = 256):
34 self._max_size = max_size
35 self._lock = asyncio.Lock()
36 self._cache: OrderedDict[str, list[dict]] = OrderedDict()
37
38 async def set(self, session_id: str, sources: list[dict]) -> None:
39 async with self._lock:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected