LLModel

data class LLModel(val provider: LLMProvider, val id: String, val capabilities: List<LLMCapability>, val contextLength: Long, val maxOutputTokens: Long? = null)(source)

Represents a Large Language Model (LLM) with a specific provider, identifier, and a set of capabilities.

Constructors

Link copied to clipboard
constructor(provider: LLMProvider, id: String, capabilities: List<LLMCapability>, contextLength: Long, maxOutputTokens: Long? = null)

Properties

Link copied to clipboard

A list of capabilities supported by the LLM, such as temperature adjustment, tools usage, or schema-based tasks.

Link copied to clipboard

The context length of the LLM. This is the maximum number of tokens the LLM can process.

Link copied to clipboard
val id: String

A unique identifier for the LLM instance. This typically represents the specific model version or name.

Link copied to clipboard
val maxOutputTokens: Long? = null

The maximum number of tokens that can be generated by the provider for the LLM.

Link copied to clipboard

The provider of the LLM, such as Google, OpenAI, or Meta.

Functions

Link copied to clipboard
fun supports(capability: LLMCapability): Boolean

Checks if the Large Language Model (LLM) supports a specific capability.