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

Function _require_nonempty_content

openkb/agent/compiler.py:602–605  ·  view source on GitHub ↗

Raise if a concept body is missing or whitespace-only.

(content, name: str)

Source from the content-addressed store, hash-verified

600
601
602def _require_nonempty_content(content, name: str) -> None:
603 """Raise if a concept body is missing or whitespace-only."""
604 if not isinstance(content, str) or not content.strip():
605 raise ValueError(f"LLM returned empty content for concept {name!r}")
606
607
608def _filter_related_slugs(items: list) -> list[str]:

Callers 4

_gen_createFunction · 0.85
_gen_updateFunction · 0.85
_gen_entity_createFunction · 0.85
_gen_entity_updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected