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

Method execute_command

papersolver.py:63–70  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

61 )
62
63 def execute_command(self, *args) -> str:
64 # args[0] -> command
65 # args[1] -> query
66 if args[0] == "SUMMARY":
67 return self.arxiv_eng.find_papers_by_str(args[1], self.num_papers_per_search)
68 elif args[0] == "FULL_TEXT":
69 return self.arxiv_eng.retrieve_full_paper_text(args[1])
70 raise Exception("Invalid Arxiv Search")
71
72 def matches_command(self, cmd_str) -> bool:
73 if "```SUMMARY" in cmd_str: return True

Callers 1

process_commandMethod · 0.45

Calls 2

find_papers_by_strMethod · 0.45

Tested by

no test coverage detected