MCPcopy Create free account
hub / github.com/THUDM/AgentBench / NotRule

Class NotRule

src/utils/rules.py:25–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24
25class NotRule(RuleBase):
26 def __init__(self, rule: RuleBase) -> None:
27 self.rule = rule
28
29 def check(self, obj) -> bool:
30 return not self.rule.check(obj)
31
32
33class AndRule(RuleBase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected