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

Method __init__

src/utils/rules.py:42–43  ·  view source on GitHub ↗
(self, rules: List[RuleBase])

Source from the content-addressed store, hash-verified

40
41class OrRule(RuleBase):
42 def __init__(self, rules: List[RuleBase]) -> None:
43 self.rules = rules
44
45 def check(self, obj) -> bool:
46 return any(rule.check(obj) for rule in self.rules)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected