Enum Class AiProviderKind

java.lang.Object
java.lang.Enum<AiProviderKind>
io.github.jbastgen.stemma.app.ai.AiProviderKind
All Implemented Interfaces:
Serializable, Comparable<AiProviderKind>, Constable

public enum AiProviderKind extends Enum<AiProviderKind>
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 Constants
    Enum Constant
    Description
    The 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 the claude tool.
    Any service with an OpenAI-style chat API: OpenAI, Azure gateways, Ollama, LM Studio, vLLM, …
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    The kind of a settings value; an unknown one is Anthropic.
    key()
    The value in the settings file.
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • ANTHROPIC

      public static final AiProviderKind ANTHROPIC
      The Anthropic Messages API.
    • OPENAI

      public static final AiProviderKind OPENAI
      Any service with an OpenAI-style chat API: OpenAI, Azure gateways, Ollama, LM Studio, vLLM, …
    • GITHUB_MODELS

      public static final AiProviderKind 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

      public static final AiProviderKind 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

      public static final AiProviderKind CUSTOM
      A web service described by URL, headers and a request template.
    • LOCAL_TOOL

      public static final AiProviderKind LOCAL_TOOL
      A command on this computer that gets the prompt and prints the answer, for example the claude tool.
  • Field Details

    • label

      public final String label
  • Method Details

    • values

      public static AiProviderKind[] 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 AiProviderKind 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
    • key

      public String key()
      The value in the settings file.
    • fromKey

      public static AiProviderKind fromKey(String key)
      The kind of a settings value; an unknown one is Anthropic.