KoogAgentsConfig

Configuration class for setting up a Koog agents server. Provides options to configure LLM connections, agent tools, features, and other related settings.

Constructors

Link copied to clipboard
constructor(scope: CoroutineScope)

Types

Link copied to clipboard
inner class AgentConfig

Configuration class for managing agent-specific settings and tools.

Link copied to clipboard

AnthropicConfig is a configuration class for integrating with the Anthropic API. It allows for customization of base API URL, model versions, API version, timeout settings, and the HTTP client used for requests. This class facilitates specifying all necessary parameters and settings required to interact with Anthropic's LLM services.

Link copied to clipboard

DeepSeekConfig is a configuration class for setting up the DeepSeek client. It manages essential parameters such as API key, base URL, connection timeout settings, and the HTTP client used for requests.

Link copied to clipboard

GoogleConfig is a configuration class for setting up and customizing integrations with the Google Generative Language API. It allows for specifying an API key, configuring timeouts, and setting the base URL used for API requests.

Link copied to clipboard
inner class LLMConfig

Configuration class for managing various Language Learning Model (LLM) providers and their settings. This class allows integration with different LLM services such as OpenAI, Anthropic, Google, OpenRouter, DeepSeek, and Ollama. Users can also define fallback configurations and custom LLM clients.

Link copied to clipboard

OllamaConfig is a configuration class for managing the settings required to connect and interact with an Ollama-based language model server. It includes properties for setting the server's base URL, connection timeouts, and an HTTP client for underlying network communication.

Link copied to clipboard

Configuration class for OpenAI integration, providing options to set API-specific paths, network timeouts, and base connection settings.

Link copied to clipboard

OpenRouterConfig is a configuration class for setting up the OpenRouter client. It manages essential parameters such as API key, base URL, connection timeout settings, and the HTTP client used for requests.

Link copied to clipboard
data class TimeoutConfiguration(var requestTimeout: Duration = DEFAULT_TIMEOUT, var connectTimeout: Duration = DEFAULT_CONNECT_TIMEOUT, var socketTimeout: Duration = DEFAULT_TIMEOUT)

Configuration class for defining timeout durations in network requests. Used to set and customize the request, connection, and socket timeouts.

Functions

Link copied to clipboard

Configures default configuration for all AI agents with the specified settings.

Link copied to clipboard
fun llm(configure: KoogAgentsConfig.LLMConfig.() -> Unit)

Configures the properties and behavior of the large language model (LLM) within the server environment. Allows setting and customizing various aspects of LLM providers, fallbacks, and related configurations.