Package com.pnfsoftware.jeb.util.llm
Enum Class LlmApiType
- All Implemented Interfaces:
Serializable,Comparable<LlmApiType>,Constable
Types of LLM endpoints.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic LlmApiTypeGet an API type from its display name.getName()toString()static LlmApiTypeReturns the enum constant of this class with the specified name.static LlmApiType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Unsupported or illegal endpoint type. -
OPENAI
OpenAI endpoint (Chat Completions API). Compatible endpoints include several open-source LLMs, such as Mistral, Llama, Qwen, etc. -
OPENAI_RESPONSES
OpenAI endpoint (Responses API). -
ANTHROPIC
Anthropic endpoint (Messages API). -
GEMINI
Gemini endpoint. -
BEDROCK
AWS Bedrock unified endpoint type. Base URL:https://bedrock-runtime.$REGION.amazonaws.com
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getName
- Returns:
- display name
-
getDescription
- Returns:
- display description
-
fromName
Get an API type from its display name.- Parameters:
name- display name- Returns:
- matching API type, or
UNKNOWNif none matches
-
getSupportedEndpoints
- Returns:
- supported endpoint path templates
-
toString
- Overrides:
toStringin classEnum<LlmApiType>
-