LLModelDefinitions

Interface defining and managing configurations or metadata for supported Large Language Models (LLMs). This serves as a contract for providing LLM-specific definitions, capabilities, and configurations that are needed during interactions with LLM providers. Typically, implementations of this interface represent contextual information about various LLMs.

Properties

Link copied to clipboard
abstract val models: List<LLModel>

Lists all (both declared and custom) models under this definition

Functions

Link copied to clipboard
abstract fun addCustomModel(model: LLModel)

Adds a custom model to this definition

Link copied to clipboard
@VisibleForTesting
fun LLModelDefinitions.list(customModels: List<LLModel> = emptyList()): List<LLModel>

Retrieves a list of all LLModel instances defined within the current LLModelDefinitions.

Link copied to clipboard

Maps the model IDs to models under this definition