MCPcopy Create free account
hub / github.com/SamuelSchmidgall/AgentLaboratory / initial_solve

Method initial_solve

papersolver.py:306–323  ·  view source on GitHub ↗

Initialize the solver and get an initial set of papers and a return @return: None

(self)

Source from the content-addressed store, hash-verified

304 return model_resp, cmd_str
305
306 def initial_solve(self):
307 """
308 Initialize the solver and get an initial set of papers and a return
309 @return: None
310 """
311 # @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
312 # @@ Initial PaperGen Commands @@
313 # @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
314 self.best_score = None
315 self.commands = [PaperReplace(self.save_loc)]
316 self.model = f"{self.llm_str}"
317 init_report, init_return, self.best_score = self.gen_initial_report()
318 self.best_report = [(copy(init_report), self.best_score, init_return) for _ in range(1)]
319
320 self.paper_lines = init_report
321 self.model = f"{self.llm_str}"
322 self.commands = [PaperEdit(self.save_loc)] #, Replace()]
323 self.prev_working_report = copy(self.paper_lines)
324
325 @staticmethod
326 def clean_text(text):

Callers 1

report_writingMethod · 0.95

Calls 3

gen_initial_reportMethod · 0.95
PaperReplaceClass · 0.85
PaperEditClass · 0.85

Tested by

no test coverage detected