fix_best_practice_violations
WHEN: validate_best_practices returned violations and you want concrete X++ fix suggestions. Returns each BP violation with its built-in fix suggestion AND (when Ollama is available) an AI-generated X++ code patch using the source from the knowledge base. Triggers: 'fix best practice', 'corriger les violations', 'generate fix', 'patch BP'. Set generatePatches=true to call Ollama (ALMXPP_SUMMARIZE_MODEL) for code patches -- requires Ollama running at OLLAMA_HOST. Falls back to built-in fix suggestions if unavailable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| objectName | Yes | Object or method to fix, e.g. 'SalesLine' or 'SalesLine.insert'. | |
| maxViolations | No | Max violations to process (1-20, default 10). | |
| generatePatches | No | Generate X++ code patches via Ollama (requires OLLAMA_HOST). Default false. |