MCPcopy Create free account
hub / github.com/BUPT-GAMMA/MASFactory / _require_runtime

Function _require_runtime

applications/chatdev_lite/components/tools.py:28–34  ·  view source on GitHub ↗

Get runtime context, auto-sync directory from attributes if needed

()

Source from the content-addressed store, hash-verified

26 _RUNTIME = context
27
28def _require_runtime() -> RuntimeContext:
29 """Get runtime context, auto-sync directory from attributes if needed"""
30 if _RUNTIME is None:
31 raise RuntimeError("RuntimeContext not set. Call set_runtime(...) before tool usage.")
32 if _RUNTIME.attributes and not _RUNTIME.directory:
33 _RUNTIME.directory = _RUNTIME.attributes.get('directory')
34 return _RUNTIME
35
36def check_code_completeness_tool() -> str:
37 """

Callers 4

save_requirements_toolFunction · 0.85
save_manual_toolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected