Update training.py
Browse files182 unmodified lines1831841851861871881899 unmodified lines199200201202203204205206207208209210211212213214182 unmodified lines]last_output = random.choice(last_outputs)# Use same prompt structure as build_promptprompt = f"""You are an AI code review agent. Your goal is to convince a simulated human developer to accept your proposed fix and name your proposed fix function fix.The developer has a **defensive** personality and will only accept if you provide solid evidence:- Tests pass (high pass ratio)9 unmodified lines5. Once convinced, use `done` to finish.Code:{obs.code_snippet}Author says:{author_msg if author_msg else "(no response yet – start with inspection)"}Last tool output:{tool_output if tool_output else "(none)"}Available actions:run_tests, run_linter, inspect, query_docs, fix, comment, question, doneRespond ONLY in JSON:{{"action_type": "...", "content": "..."}}"""182 unmodified lines1831841851861871881899 unmodified lines199200201202203204205206207208209210211212213214182 unmodified lines]last_output = random.choice(last_outputs)# Use same prompt structure as build_promptprompt = f"""You are an AI code review agent. Your goal is to convince a simulated human developer to accept your proposed fix.The developer has a **defensive** personality and will only accept if you provide solid evidence:- Tests pass (high pass ratio)9 unmodified lines5. Once convinced, use `done` to finish.Code:{code}Author says:(no response yet – start with inspection)Last tool output:{last_output}Available actions:run_tests, run_linter, inspect, fix, comment, question, doneRespond ONLY in JSON:{{"action_type": "...", "content": "..."}}"""
training.py+5-5