given the exploring topic and the record table path of the literatures, this tool generates a paragraph of summary.
(topic: str, table_path: str)
| 494 | |
| 495 | @tool.get('/generate_summary') |
| 496 | def generate_summary(topic: str, table_path: str): |
| 497 | """given the exploring topic and the record table path of the literatures, this tool generates a paragraph of summary. |
| 498 | """ |
| 499 | try: |
| 500 | table = open(table_path).read() |
| 501 | except Exception as e: |
| 502 | js = {'error': 'cannot open the table file!'} |
| 503 | return js |
| 504 | con = draw_conclusion(topic, table) |
| 505 | js = {'summary': con} |
| 506 | return js |
| 507 | |
| 508 | @tool.get('/print_literature') |
| 509 | def print_literature(literature_path: str, print_num: int): |
nothing calls this directly
no test coverage detected