MCPcopy Create free account
hub / github.com/OpenBMB/BMTools / generate_summary

Function generate_summary

bmtools/tools/meta_analysis/api.py:496–506  ·  view source on GitHub ↗

given the exploring topic and the record table path of the literatures, this tool generates a paragraph of summary.

(topic: str, table_path: str)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 1

draw_conclusionFunction · 0.85

Tested by

no test coverage detected