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

Method parse_command

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

Source from the content-addressed store, hash-verified

75 return False
76
77 def parse_command(self, *args) -> tuple:
78 sum_text = extract_prompt(args[0], "SUMMARY").split("\n")
79 full_text = extract_prompt(args[0], "FULL_TEXT").split("\n")
80 if len(sum_text) == 0 and len(full_text) == 0: return False, None
81 if len(sum_text) > 0: return True, ("SUMMARY", sum_text,)
82 if len(full_text) > 0: return True, ("FULL_TEXT", sum_text,)
83
84
85"""

Callers 1

process_commandMethod · 0.45

Calls 1

extract_promptFunction · 0.85

Tested by

no test coverage detected