LLMProvider

@Serializable
sealed class LLMProvider(source)

Represents a sealed hierarchy for defining Large Language Model (LLM) providers. Each LLM provider is uniquely identified by an id and a display name.

This sealed class allows enumeration of specific providers like Google, OpenAI, Meta, etc., and serves as a common base type for handling providers within the system.

Inheritors

Types

Link copied to clipboard
@Serializable
data object Alibaba : LLMProvider

Represents Alibaba as a specific provider of Large Language Models (LLMs).

Link copied to clipboard
@Serializable
data object Anthropic : LLMProvider

Represents the Anthropic LLM provider.

Link copied to clipboard
@Serializable
data object Google : LLMProvider

Represents a specialized implementation of the LLMProvider class corresponding to the Google provider.

Link copied to clipboard
@Serializable
data object Meta : LLMProvider

Represents the "Meta" large language model provider in the system.

Link copied to clipboard
@Serializable
data object OpenAI : LLMProvider

Represents the OpenAI provider in the Large Language Model (LLM) ecosystem.

Link copied to clipboard
@Serializable
data object OpenRouter : LLMProvider

Represents the OpenRouter provider within the available set of large language model providers.

Properties

Link copied to clipboard

The human-readable name of the LLM provider.

Link copied to clipboard
val id: String

The unique identifier of the LLM provider.