Enum Class LlmApiType

java.lang.Object
java.lang.Enum<LlmApiType>
com.pnfsoftware.jeb.util.llm.LlmApiType
All Implemented Interfaces:
Serializable, Comparable<LlmApiType>, Constable

public enum LlmApiType extends Enum<LlmApiType>
Types of LLM endpoints.
  • Enum Constant Details

    • UNKNOWN

      public static final LlmApiType UNKNOWN
      Unsupported or illegal endpoint type.
    • OPENAI

      public static final LlmApiType OPENAI
      OpenAI endpoint (Chat Completions API). Compatible endpoints include several open-source LLMs, such as Mistral, Llama, Qwen, etc.
    • OPENAI_RESPONSES

      public static final LlmApiType OPENAI_RESPONSES
      OpenAI endpoint (Responses API).
    • ANTHROPIC

      public static final LlmApiType ANTHROPIC
      Anthropic endpoint (Messages API).
    • GEMINI

      public static final LlmApiType GEMINI
      Gemini endpoint.
    • BEDROCK

      public static final LlmApiType BEDROCK
      AWS Bedrock unified endpoint type. Base URL: https://bedrock-runtime.$REGION.amazonaws.com
  • Method Details

    • values

      public static LlmApiType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LlmApiType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getName

      public String getName()
      Returns:
      display name
    • getDescription

      public String getDescription()
      Returns:
      display description
    • fromName

      public static LlmApiType fromName(String name)
      Get an API type from its display name.
      Parameters:
      name - display name
      Returns:
      matching API type, or UNKNOWN if none matches
    • getSupportedEndpoints

      public List<String> getSupportedEndpoints()
      Returns:
      supported endpoint path templates
    • toString

      public String toString()
      Overrides:
      toString in class Enum<LlmApiType>