MCPcopy Index your code
hub / github.com/THUDM/AgentBench / Variable

Class Variable

src/server/tasks/knowledgegraph/api.py:22–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21
22class Variable:
23
24 def __init__(self, type, program):
25 self.type = type
26 self.program = program
27
28 def __hash__(self) -> int:
29 return hash(self.program)
30
31 def __eq__(self, __value: object) -> bool:
32 if isinstance(__value, Variable):
33 return self.program == __value.program
34 else:
35 return False
36
37 def __repr__(self) -> str:
38 return self.program
39
40
41class API:

Callers 6

get_neighborsMethod · 0.85
intersectionMethod · 0.85
unionMethod · 0.85
countMethod · 0.85
argmaxMethod · 0.85
argminMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected