The invention provides a
legacy system-oriented large-model-driven API document automatic generation
system, belongs to the crossing field of
artificial intelligence and
software development, and provides a multi-
modal data fusion and closed-loop
verification mechanism aiming at the defects of a traditional API document generation method in the aspects of semantic comprehension, dynamic context capture and multi-
technology stack adaptation. A code static feature and a dynamic track during operation are analyzed through a multi-
source data acquisition module, and an interface
semantic feature is extracted in combination with a field self-adaptive
large model of a
semantic enhancement analysis module; deducing an implicit service rule by fusing static / dynamic characteristics through a graph neural network, and generating a standardized document conforming to an OpenAPI specification through a parameterized template
generative adversarial network (PT-GAN); and finally, performing three-level
verification and closed-
loop optimization through a sandbox environment. The method supports a heterogeneous
system of 16
programming languages such as
Java / C + + / Python, interface version changes can be automatically recognized, document patches are generated, the problems of missing and outdated
system documents and low maintenance efficiency are solved, and
maintainability and integration efficiency of enterprise-level systems are remarkably improved.