Class LlmSettings

java.lang.Object
com.pnfsoftware.jeb.util.llm.LlmSettings

public class LlmSettings extends Object
Settings used to create an LLM conversation.
  • Field Details

    • baseUrl

      public String baseUrl
      Provider base URL.
    • modelName

      public String modelName
      Model name or identifier.
    • apikey

      public String apikey
      API key or environment-variable reference. If the value starts with $, the remaining characters are resolved as an environment variable name.
    • systemPrompt

      public String systemPrompt
      Optional system prompt.
    • tooldefs

      Tool definitions exposed to the model.
    • reasoningEffort

      public String reasoningEffort
      Optional provider/model-specific reasoning effort hint.
    • customHeaders

      public Map<String,String> customHeaders
      Additional HTTP headers added to provider requests.
    • endpointListModels

      public String endpointListModels
      Optional end-point path used to list models (e.g. /list). If null, the suffix will be inferred from the selected API type.
    • endpointChat

      public String endpointChat
      Optional end-point path used to chat with the model (e.g. /chat/completions). If null, the suffix will be inferred from the selected API type.
    • compactionThreshold

      public int compactionThreshold
      Auto-compress the conversation after the output reaches the provided token threshold. This optional setting is currently limited to OpenAI's Responses API and Anthropic's Messages API.
  • Constructor Details

    • LlmSettings

      public LlmSettings(String apikey, String baseUrl, String modelName)
      Create LLM settings.
      Parameters:
      apikey - API key or environment-variable reference
      baseUrl - provider base URL
      modelName - model name or identifier