Loading tests/test_hd_8.py 0 → 100644 +34 −0 Original line number Diff line number Diff line import sys import os PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) sys.path.insert(0, PROJECT_ROOT) from orchestrator import Orchestrator PROMPT = """Tu je moja funkcia, ktorá počíta priemer zoznamu čísel. Funguje, ale chcel by som, aby bola jednoduchšia a aby riešila aj prázdny zoznam: def avg(nums): s = 0 for n in nums: s += n return s / len(nums) Vysvetli, čo robí pôvodná verzia, a navrhni jednoduchšiu a bez- pečnejšiu alternatívu. """ def main(): orchestrator = Orchestrator() print("=== Multi-Agent Python Helper (TESTING) ===") print("User input: " + PROMPT) result = orchestrator.process(PROMPT) agent, response = result print("==== Agent ==== ("+agent+")") print(response) print("===============\n") if __name__ == "__main__": main() Loading
tests/test_hd_8.py 0 → 100644 +34 −0 Original line number Diff line number Diff line import sys import os PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) sys.path.insert(0, PROJECT_ROOT) from orchestrator import Orchestrator PROMPT = """Tu je moja funkcia, ktorá počíta priemer zoznamu čísel. Funguje, ale chcel by som, aby bola jednoduchšia a aby riešila aj prázdny zoznam: def avg(nums): s = 0 for n in nums: s += n return s / len(nums) Vysvetli, čo robí pôvodná verzia, a navrhni jednoduchšiu a bez- pečnejšiu alternatívu. """ def main(): orchestrator = Orchestrator() print("=== Multi-Agent Python Helper (TESTING) ===") print("User input: " + PROMPT) result = orchestrator.process(PROMPT) agent, response = result print("==== Agent ==== ("+agent+")") print(response) print("===============\n") if __name__ == "__main__": main()