MCPcopy Create free account
hub / github.com/RASAAS/docmcp-knowledge / _load_state

Method _load_state

scripts/fetch_updates.py:2806–2813  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2804 f"(LLM_BASE_URL={LLM_BASE_URL}, LLM_MODEL={LLM_MODEL}).")
2805
2806 def _load_state(self) -> dict:
2807 if self.state_file.exists():
2808 try:
2809 with open(self.state_file, "r", encoding="utf-8") as f:
2810 return json.load(f)
2811 except Exception:
2812 pass
2813 return {}
2814
2815 def _save_state(self):
2816 self.state_file.parent.mkdir(parents=True, exist_ok=True)

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected