MCPcopy Index your code
hub / github.com/microsoft/SkillOpt / is_structured

Function is_structured

skillopt/config.py:175–180  ·  view source on GitHub ↗

Return True if *cfg* uses the new structured section format.

(cfg: dict)

Source from the content-addressed store, hash-verified

173# ── Format detection ─────────────────────────────────────────────────────
174
175def is_structured(cfg: dict) -> bool:
176 """Return True if *cfg* uses the new structured section format."""
177 return any(
178 key in _STRUCTURED_SECTIONS and isinstance(cfg.get(key), dict)
179 for key in cfg
180 )
181
182
183# ── Flatten ──────────────────────────────────────────────────────────────

Callers 3

load_configFunction · 0.90
mainFunction · 0.90
flatten_configFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected