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

Method __hash__

AgentBench.old/src/tasks/knowledgegraph/api.py:26–27  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

24 self.type = type
25 self.program = program
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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected