Update training.py
Browse files182 unmodified lines1831841851861861871881899 unmodified lines199200201202202203204205205206207208208209210211211212213214182 unmodified lines ] last_output = random.choice(last_outputs) # Use same prompt structure as build_prompt prompt = 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. prompt = 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:{obs.code_snippet}{code}
Author says:{author_msg if author_msg else "(no response yet – start with inspection)"}(no response yet – start with inspection)
Last tool output:{tool_output if tool_output else "(none)"}{last_output}
Available actions:run_tests, run_linter, inspect, query_docs, fix, comment, question, donerun_tests, run_linter, inspect, fix, comment, question, done
Respond ONLY in JSON:{{"action_type": "...", "content": "..."}}"""training.py+5-5