Interface ILlmProvider


public interface ILlmProvider
Represents a provider for Large Language Model (LLM) services.
Since:
3.25.12
  • Method Details

    • getId

      @NotNull String getId()
      Returns the unique identifier of this LLM provider.

      The identifier must follow these rules:

      • Can contain only letters, numbers and underscores ('_')
      • Must be unique among all the LLM providers in the system
    • getLlm

      @NotNull ILlm getLlm(@NotNull ILlmContext context)
      Creates an LLM instance configured using the specified context.
      Throws:
      LlmConfigurationException - if the LLM configuration is invalid or incomplete
    • getLlmCredentials

      @NotNull default ILlmCredentials getLlmCredentials(@NotNull ILlmCredentialsContext context)
      Creates a credentials instance configured using the specified context.
      Throws:
      LlmConfigurationException - if the configuration is invalid or incomplete
      UnsupportedOperationException - if this provider does not support credentials instances
      Since:
      3.26.6