Package-level declarations

Types

Link copied to clipboard
@Serializable
sealed class ChatMessage
Link copied to clipboard
data class ChatRequest(val model: String, val messages: List<ChatMessage>, val thinking: Boolean? = null, val stream: Boolean = false, val maxTokens: Int? = null, val tools: List<ChatRequest.Tool>? = null, val toolCallRequired: Boolean? = null, val temperature: Double? = null, val topP: Double? = null, val frequencyPenalty: Double? = null, val presencePenalty: Double? = null, val responseFormat: ChatRequest.ResponseFormat? = null)
Link copied to clipboard
sealed class ChatResult
Link copied to clipboard
data class ChatTimeout(val requestTimeout: Duration, val connectTimeout: Duration, val streamChunkTimeout: Duration)
Link copied to clipboard
data class CoreLlmRequest(val model: UUID, val fallbackModels: List<UUID>?, val messages: List<ChatMessage>, val tools: List<ChatRequest.Tool>? = null, val responseFormat: ChatRequest.ResponseFormat? = null, val stream: Boolean = false, val thinking: Boolean? = null, val timeout: ChatTimeout? = null)
Link copied to clipboard
data class CoreLlmResult(val result: ChatResult, val model: UUID)
Link copied to clipboard
@Serializable
data class ModelData(val id: UUID, val displayName: String, val modelInfo: ModelData.ModelInfo, val providerId: UUID, val config: ModelData.Config? = null)
Link copied to clipboard
@Serializable
data class Price(val amount: BigDecimal, val currency: Currency, val tokenUnit: Int)
Link copied to clipboard
@Serializable
data class ProviderData(val id: UUID, val displayName: String, val providerType: String, val apiKey: UUID, val baseUrl: Url, val errorHandlingRules: List<ProviderData.ErrorHandlingRule>)
Link copied to clipboard
@Serializable
data class Usage(val promptTokens: Int, val completionTokens: Int, val reasoningTokens: Int? = null, val cacheHitTokens: Int? = null, val imageTokens: Int? = null)
Link copied to clipboard
@Serializable
data class UsageSnapshot(val usage: Usage, val model: ModelData.ModelInfo)