Class AiSuggestionEngineImpl

java.lang.Object
org.egothor.methodatlas.ai.AiSuggestionEngineImpl
All Implemented Interfaces:
AiSuggestionEngine

public final class AiSuggestionEngineImpl extends Object implements AiSuggestionEngine
Default implementation of AiSuggestionEngine that coordinates provider selection and taxonomy loading for AI-based security classification.

This implementation acts as the primary orchestration layer between the command-line application and the provider-specific AI client subsystem. It resolves the effective AiProviderClient through AiProviderFactory, loads the taxonomy text used to guide classification, and delegates class-level analysis requests to the selected provider client.

Responsibilities

  • creating the effective provider client from AiOptions
  • loading taxonomy text from a configured file or from the selected built-in taxonomy mode
  • delegating class analysis requests to the provider client
  • presenting a provider-independent AiSuggestionEngine contract to higher-level callers

Instances of this class are immutable after construction and are intended to be created once per application run.

See Also:
  • Constructor Details

    • AiSuggestionEngineImpl

      public AiSuggestionEngineImpl(AiOptions options) throws AiSuggestionException
      Creates a new AI suggestion engine using the supplied runtime options.

      During construction, the implementation resolves the effective provider client and loads the taxonomy text that will be supplied to the AI provider for subsequent classification requests. The taxonomy is taken from an external file when configured; otherwise, the built-in taxonomy selected by AiOptions.taxonomyMode() is used.

      Parameters:
      options - AI runtime configuration controlling provider selection, taxonomy loading, and request behavior
      Throws:
      AiSuggestionException - if provider initialization fails or if the configured taxonomy cannot be loaded
  • Method Details