MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / save_config

Function save_config

openkb/config.py:259–261  ·  view source on GitHub ↗

Persist config dict to YAML, creating parent directories as needed.

(config_path: Path, config: dict)

Source from the content-addressed store, hash-verified

257
258
259def save_config(config_path: Path, config: dict) -> None:
260 """Persist config dict to YAML, creating parent directories as needed."""
261 _atomic_yaml_dump(config_path, config)
262
263
264def load_global_config() -> dict[str, Any]:

Callers 4

test_save_load_roundtripFunction · 0.90
initFunction · 0.90

Calls 1

_atomic_yaml_dumpFunction · 0.85

Tested by 3

test_save_load_roundtripFunction · 0.72