Package io.github.jbastgen.stemma.app.ai
Enum Class AiProviderKind
- All Implemented Interfaces:
Serializable,Comparable<AiProviderKind>,Constable
The kinds of AI service Stemma can talk to.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe Anthropic Messages API.GitHub Copilot through its official command line tool (copilot), which uses the Copilot subscription the user is signed in with.A web service described by URL, headers and a request template.GitHub Models: the inference API of GitHub (OpenAI-style chat), used with a GitHub token that may use models.A command on this computer that gets the prompt and prints the answer, for example theclaudetool.Any service with an OpenAI-style chat API: OpenAI, Azure gateways, Ollama, LM Studio, vLLM, … -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic AiProviderKindThe kind of a settings value; an unknown one is Anthropic.key()The value in the settings file.static AiProviderKindReturns the enum constant of this class with the specified name.static AiProviderKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANTHROPIC
The Anthropic Messages API. -
OPENAI
Any service with an OpenAI-style chat API: OpenAI, Azure gateways, Ollama, LM Studio, vLLM, … -
GITHUB_MODELS
GitHub Models: the inference API of GitHub (OpenAI-style chat), used with a GitHub token that may use models. Documented and meant for programs; it is not the Copilot chat service itself. -
COPILOT_CLI
GitHub Copilot through its official command line tool (copilot), which uses the Copilot subscription the user is signed in with. The data goes to GitHub, so this is not "local" for the local-only rule. -
CUSTOM
A web service described by URL, headers and a request template. -
LOCAL_TOOL
A command on this computer that gets the prompt and prints the answer, for example theclaudetool.
-
-
Field Details
-
label
-
-
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
-
key
The value in the settings file. -
fromKey
The kind of a settings value; an unknown one is Anthropic.
-