Package-level declarations

Types

Link copied to clipboard
data class ConnectionTimeoutConfig(val requestTimeoutMillis: Long = DEFAULT_TIMEOUT_MS, val connectTimeoutMillis: Long = DEFAULT_CONNECT_TIMEOUT_MS, val socketTimeoutMillis: Long = DEFAULT_TIMEOUT_MS)

ConnectionTimeoutConfig is a configuration class for specifying timeout values for network connections in milliseconds. It includes configurable timeouts for requests, connection establishment, and socket operations.

Link copied to clipboard

Common interface for direct communication with LLM providers. This interface defines methods for executing prompts and streaming responses.

Common interface for direct communication with LLM providers. This interface defines methods for executing prompts and streaming responses.

Common interface for direct communication with LLM providers. This interface defines methods for executing prompts and streaming responses.

Common interface for direct communication with LLM providers. This interface defines methods for executing prompts and streaming responses.

Common interface for direct communication with LLM providers. This interface defines methods for executing prompts and streaming responses.

Common interface for direct communication with LLM providers. This interface defines methods for executing prompts and streaming responses.

Link copied to clipboard
Link copied to clipboard
class LLMClientException(clientName: String, message: String? = null, cause: Throwable? = null) : Exception

Exception for Koog LLM clients

Link copied to clipboard

Abstract base class for LLM embedding providers on Android.

Abstract base class for LLM embedding providers on Apple platforms.

Abstract base class for LLM embedding providers.

Abstract base class for LLM embedding providers on JavaScript.

JVM-specific abstract base class for LLM embedding providers.

Abstract base class for LLM embedding providers on Wasm/JS.

Link copied to clipboard
Link copied to clipboard

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.

Functions

Link copied to clipboard
@VisibleForTesting
fun allModelsIn(obj: Any): List<LLModel>

Retrieves all public properties of the specified object and nested objects that are of type LLModel and returns them as a list.

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