ModelProvider

interface ModelProvider

Provide AI models for requested roles, and expose data about available models.

Inheritors

Types

Link copied to clipboard
object Companion

Well-known roles for models Useful but not exhaustive: users are free to define their own roles

Functions

Link copied to clipboard

What configuration says role means for this deployment, or null if it says nothing.

Link copied to clipboard
Link copied to clipboard
abstract fun getLlm(criteria: ModelSelectionCriteria): LlmService<*>
Link copied to clipboard
abstract fun listModelNames(modelClass: Class<*>): List<String>
Link copied to clipboard
abstract fun listModels(): List<ModelMetadata>
Link copied to clipboard
abstract fun listRoles(modelClass: Class<*>): List<String>

List the roles available for this class of model

Link copied to clipboard
open fun resolveLlmOptions(llmOptions: LlmOptions): LlmOptions

Resolve any role in these options to a concrete model, applying whatever hyperparameters are configured against that role.