MCPcopy Create free account
hub / github.com/Open-Quant/openquant / write_state

Function write_state

scripts/afml_docs_loop.py:239–242  ·  view source on GitHub ↗
(state: dict[str, Any])

Source from the content-addressed store, hash-verified

237
238
239def write_state(state: dict[str, Any]) -> None:
240 STATE_DIR.mkdir(parents=True, exist_ok=True)
241 state["updated_at"] = now_iso()
242 STATE_PATH.write_text(json.dumps(state, indent=2), encoding="utf-8")
243
244
245def read_state() -> dict[str, Any]:

Callers 5

cmd_initFunction · 0.85
cmd_nextFunction · 0.85
cmd_doneFunction · 0.85
cmd_resetFunction · 0.85
cmd_evidenceFunction · 0.85

Calls 1

now_isoFunction · 0.85

Tested by

no test coverage detected