The invention discloses a micro-
service system defect
root cause positioning and SOP automatic generation method based on multi-agent
collaboration. The method comprises the steps that S1, a micro-
service system is built, and marking defects are injected; s2, generating a standard operation process SOP for defect investigation based on an LLM-driven multi-agent cooperation mechanism; s3,
root cause positioning is executed according to the generated SOP, an
executable diagnosis code is generated by LLM and automatically runs, and an abnormal propagation path and a trigger mechanism are identified by executing feedback; s4, based on a
root cause positioning result, generating a repair demand description and an
executable repair command by the LLM, and executing the repair command; and S5, verifying a repair result, updating the
knowledge base according to a repair execution condition, and using successful and failed
troubleshooting and
repair processes as sample precipitates for
system self-learning and optimization. According to the method, automatic generation of a
troubleshooting process, root cause positioning and closed-loop
automation of repair suggestion generation can be realized under a complex micro-
service system, and the diagnosis efficiency and accuracy are remarkably improved.