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

Method check

src/utils/rules.py:18–22  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

16 self.reverse = reverse
17
18 def check(self, obj) -> bool:
19 if self.reverse:
20 return obj in self.target
21 else:
22 return self.target in obj
23
24
25class NotRule(RuleBase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected