MCPcopy Create free account
hub / github.com/Fosowl/agenticSeek / interpreter_feedback

Method interpreter_feedback

sources/tools/JavaInterpreter.py:70–78  ·  view source on GitHub ↗

Provide feedback based on the output of the code execution.

(self, output: str)

Source from the content-addressed store, hash-verified

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 """

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected