MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / __eq__

Method __eq__

AgentBench.old/src/tasks/knowledgegraph/api.py:28–32  ·  view source on GitHub ↗
(self, __value: object)

Source from the content-addressed store, hash-verified

26 def __hash__(self) -> int:
27 return hash(self.program)
28 def __eq__(self, __value: object) -> bool:
29 if isinstance(__value, Variable):
30 return self.program == __value.program
31 else:
32 return False
33 def __repr__(self) -> str:
34 return self.program
35

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected