MCPcopy Create free account
hub / github.com/FSoft-AI4Code/HyperAgent / run

Method run

src/hyperagent/tasks/fault_localization.py:71–77  ·  view source on GitHub ↗
(self, system, idx)

Source from the content-addressed store, hash-verified

69 return repo_dir
70
71 def run(self, system, idx) -> Result:
72 prompt = self.construct_prompt(idx)
73 data = self.load_data(idx)
74 system.query_codebase(prompt)
75 prediction = system.system._groupchat.messages[-1]["content"]
76 result = self.validate(prediction, data)
77 return result
78
79 def match(self, prediction, buggy_methods):
80 match_str = self.llm(f"Here is the answer: {prediction} and buggy methods {''.join(buggy_methods)}")

Callers 1

mainFunction · 0.95

Calls 4

construct_promptMethod · 0.95
load_dataMethod · 0.95
validateMethod · 0.95
query_codebaseMethod · 0.80

Tested by

no test coverage detected