Package org.egothor.methodatlas.ai


package org.egothor.methodatlas.ai
AI integration layer for MethodAtlas providing automated security classification of JUnit test methods.

This package contains the infrastructure required to obtain AI-assisted suggestions for security tagging of JUnit 5 tests. The subsystem analyzes complete test classes, submits classification prompts to an AI provider, and converts the returned results into structured suggestions that can be consumed by the main application.

Architecture Overview

The AI subsystem follows a layered design:

Security Considerations

Source code analyzed by the AI subsystem may contain sensitive information. For environments where external transmission of code is undesirable, the subsystem supports local inference through OllamaClient.

Deterministic Output

The subsystem is designed to obtain deterministic, machine-readable output from AI models. Prompts enforce strict JSON responses and classification decisions are constrained by a controlled taxonomy.

Extensibility

Additional AI providers can be integrated by implementing AiProviderClient and registering the implementation in AiProviderFactory.

Since:
1.0.1