MCPcopy Create free account
hub / github.com/ParzivalHack/PySpector / _wrap

Function _wrap

tests/unit/test_ai_rules.py:23–25  ·  view source on GitHub ↗
(code: str)

Source from the content-addressed store, hash-verified

21
22
23def _wrap(code: str) -> str:
24 indented = "\n".join(" " + line for line in textwrap.dedent(code).splitlines())
25 return f"def _load_model():\n{indented}\n"
26
27
28def _ai_rule(rule_id: str) -> dict:

Callers 1

run_pyspector_aiFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected