Module de.seggebaeing.sqlanalyzer
Class NumericalDummy
java.lang.Object
de.seggebaeing.sqlanalyzer.logic.promptable.impl.dummy.NumericalDummy
- All Implemented Interfaces:
Promptable
- Direct Known Subclasses:
RateLimitedNumericalDummy
A dummy implementation of
Promptable
that simulates
a numerical LLM response. Instead of performing any real processing, it waits
for a random delay between 1 and 5 seconds and then returns a random integer
as a string. This is primarily intended for testing and benchmarking without
invoking real LLM APIs.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NumericalDummy
public NumericalDummy()
-
-
Method Details
-
prompt
public String prompt(String input, String model, String apiKey, double temperature) throws LLMException Simulates prompting by waiting for a random delay between 1 and 5 seconds and then returning a random integer (0–99) as a string. No actual LLM call is performed.- Specified by:
prompt
in interfacePromptable
- Parameters:
input
- the input prompt (ignored in this dummy implementation)model
- the model identifier (ignored)apiKey
- the API key (ignored)temperature
- the sampling temperature (ignored)- Returns:
- a random integer (0–99) as a string
- Throws:
LLMException
- never thrown in this dummy implementation
-