(self, *args)
| 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 |
no test coverage detected