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

Function _ai_rule

tests/unit/test_ai_rules.py:28–30  ·  view source on GitHub ↗
(rule_id: str)

Source from the content-addressed store, hash-verified

26
27
28def _ai_rule(rule_id: str) -> dict:
29 rules = toml.loads(RULES_PATH.read_text(encoding="utf-8"))
30 return next(rule for rule in rules["rule"] if rule["id"] == rule_id)
31
32
33def _ai_rule(rule_id: str) -> dict:

Calls

no outgoing calls

Tested by

no test coverage detected