Provide feedback based on the output of the code execution.
(self, output: str)
| 68 | return output |
| 69 | |
| 70 | def interpreter_feedback(self, output: str) -> str: |
| 71 | """ |
| 72 | Provide feedback based on the output of the code execution. |
| 73 | """ |
| 74 | if self.execution_failure_check(output): |
| 75 | feedback = f"[failure] Error in execution:\n{output}" |
| 76 | else: |
| 77 | feedback = "[success] Execution success, code output:\n" + output |
| 78 | return feedback |
| 79 | |
| 80 | def execution_failure_check(self, feedback: str) -> bool: |
| 81 | """ |
nothing calls this directly
no test coverage detected