Refactoring non-compliant code into compliant code
Патент · EP A1
EP-4799036-A1
приоритет 2023-10-26
подача 2024-09-24
публикация 2026-09-02
семья 93036938
patents-ai
Полный текст
Techniques for intelligently prompting an LLM to refactor code are disclosed. A code snippet is accessed. This code is identified as potentially comprising a reference to an out-of-compliance library. Context for the code snippet is generated. An LLM prompt is then built. This prompt will be fed to the LLM, and the prompt instructs the LLM to refactor the code snippet into modified code, which calls a compliant library. Output of the LLM is displayed. This output is based on the LLM operating in response to the LLM prompt. The output includes a proposed rewritten version of the code snippet.