MCPcopy Create free account
hub / github.com/Sphere-AI-Lab/FormalMATH-Bench / submit_and_receive

Method submit_and_receive

verify_answers.py:56–72  ·  view source on GitHub ↗
(self, cmd)

Source from the content-addressed store, hash-verified

54 self.session.sendline(cmd_str + '\n')
55
56 def submit_and_receive(self, cmd):
57 if self.stop_flag:
58 return None
59
60 self.init_complete.wait()
61
62 self.send_cmd(cmd)
63
64 self.cmd_query_condition.set()
65
66 self.cmd_response_condition.wait() # Wait for the response
67 self.cmd_response_condition.clear()
68 if self.response:
69 output = self.response
70 self.response = None
71 return output
72 return None
73
74 def process_responses(self):
75 while not self.stop_flag:

Callers 1

process_answerFunction · 0.80

Calls 1

send_cmdMethod · 0.95

Tested by

no test coverage detected