Package org.machanism.machai.ai.provider.none


package org.machanism.machai.ai.provider.none
Provides a no-op Genai implementation for offline, disabled, or test-only execution paths.

This package contains NoneProvider, which satisfies the Genai contract without invoking any external model backend. It is useful when AI integration must be turned off while still preserving the surrounding application flow and prompt assembly behavior.

The provider collects prompt content in memory, optionally persists configured instructions and prompt input to local files during execution, and reports zero usage because no remote or local model inference is performed.

Supported behavior

Unsupported behavior

Example


 Genai provider = new NoneProvider();
 provider.inputsLog(new File("./inputsLog/inputs.txt"));
 provider.instructions("You are a helpful assistant.");
 provider.prompt("Describe the weather.");
 provider.perform();