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

Class Variable

AgentBench.old/src/tasks/knowledgegraph/api.py:22–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20variable_attributes_cache = {}
21
22class Variable:
23 def __init__(self, type, program):
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
31 else:
32 return False
33 def __repr__(self) -> str:
34 return self.program
35
36def final_execute(variable: Variable, sparql_executor):
37 program = variable.program

Callers 6

get_neighborsFunction · 0.85
intersectionFunction · 0.85
unionFunction · 0.85
countFunction · 0.85
argmaxFunction · 0.85
argminFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected