Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/THUDM/AgentBench
/ OrRule
Class
OrRule
src/utils/rules.py:41–46 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
39
40
41
class
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
1
check_context_limit
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected