All Known Implementing Classes:
AbstractLLMHandler, ClaudePromptHandler, DeepSeekPromptHandler, GeminiPromptHandler, NumericalDummy, OpenAIPromptHandler, RateLimitedNumericalDummy, RateLimitedSQLDummy, SQLDummy

public interface Promptable
Abstraction for a component capable of generating output from a prompt.

Implementations represent different Large Language Model (LLM) providers or APIs that can process natural language input and return a response. Some implementations may act as dummies or mocks for testing or offline usage, mimicking the behavior of real models without calling an external service.

Since:
1.0
Author:
Felix Seggebäing
  • Method Summary

    Modifier and Type
    Method
    Description
    prompt(String input, String model, String apiKey, double temperature)
    Generates a response based on the given input.
  • Method Details

    • prompt

      String prompt(String input, String model, String apiKey, double temperature) throws LLMException
      Generates a response based on the given input.
      Parameters:
      input - the input text to process
      model - the model identifier
      apiKey - the API key used for authentication
      temperature - the sampling temperature influencing creativity of responses
      Returns:
      the generated response text
      Throws:
      LLMException - if the generation fails