Class BBjAdminAIConfig.Anthropic

java.lang.Object
com.basis.api.admin.BBjAdminAIConfig.Anthropic
All Implemented Interfaces:
Serializable
Enclosing class:
BBjAdminAIConfig

public static class BBjAdminAIConfig.Anthropic extends Object implements Serializable
Configuration for the Anthropic Claude provider.
See Also:
  • Constructor Details

    • Anthropic

      public Anthropic()
  • Method Details

    • getApiKey

      public String getApiKey()
      Anthropic API key. Encrypted when saved to disk.
    • setApiKey

      public void setApiKey(String apiKey)
    • getModels

      public List<String> getModels()
      Model identifiers configured for this provider, e.g. claude-sonnet-5 or claude-haiku-4-5. At least one entry is always present.
    • setModels

      public void setModels(List<String> models)
    • addModel

      public void addModel(String model)
      Adds model to the configured list if not already present.
    • removeModel

      public void removeModel(String model)
      Removes model from the configured list. A provider must always have at least one model, so the last remaining entry cannot be removed. If the removed model was the default, the first remaining model becomes the new default.
    • getDefaultModel

      public String getDefaultModel()
      Which entry in getModels() is used when a call does not request a specific model.
    • setDefaultModel

      public void setDefaultModel(String defaultModel)
      Sets the default model, adding it to getModels() first if necessary.
    • getModelName

      @Deprecated public String getModelName()
      Deprecated.
    • setModelName

      @Deprecated public void setModelName(String modelName)
      Deprecated.
    • getTimeoutSeconds

      public int getTimeoutSeconds()
      HTTP request timeout in seconds (default 60).
    • setTimeoutSeconds

      public void setTimeoutSeconds(int timeoutSeconds)
    • getMaxTokens

      public int getMaxTokens()
      Maximum tokens to generate (default 4096).
    • setMaxTokens

      public void setMaxTokens(int maxTokens)
    • getTemperature

      public double getTemperature()
      Sampling temperature 0.0–1.0 (default 0.1).
    • setTemperature

      public void setTemperature(double temperature)