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

Method __init__

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

Source from the content-addressed store, hash-verified

32
33class AndRule(RuleBase):
34 def __init__(self, rules: List[RuleBase]) -> None:
35 self.rules = rules
36
37 def check(self, obj) -> bool:
38 return all(rule.check(obj) for rule in self.rules)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected