MCPcopy
hub / github.com/GuDaStudio/GrokSearch / get

Method get

src/grok_search/sources.py:45–51  ·  view source on GitHub ↗
(self, session_id: str)

Source from the content-addressed store, hash-verified

43 self._cache.popitem(last=False)
44
45 async def get(self, session_id: str) -> list[dict] | None:
46 async with self._lock:
47 sources = self._cache.get(session_id)
48 if sources is None:
49 return None
50 self._cache.move_to_end(session_id)
51 return sources
52
53
54def merge_sources(*source_lists: list[dict]) -> list[dict]:

Callers 15

grok_modelMethod · 0.80
merge_sourcesFunction · 0.80
_normalize_sourcesFunction · 0.80
format_extra_sourcesFunction · 0.80
required_phasesMethod · 0.80
get_sessionMethod · 0.80
process_phaseMethod · 0.80
_fetch_available_modelsFunction · 0.80
get_sourcesFunction · 0.80
_call_tavily_extractFunction · 0.80
_call_tavily_searchFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected