OllamaKoogProperties

@ConfigurationProperties(prefix = "ai.koog.ollama", ignoreUnknownFields = true)
class OllamaKoogProperties(val enabled: Boolean, val baseUrl: String, val retry: RetryConfigKoogProperties? = null) : KoogLlmClientProperties(source)

Configuration properties for the Ollama integration in the Koog framework.

This class defines properties that control the connection and behavior when interacting with the Ollama Large Language Model (LLM) service.

These properties are typically configured in the application properties or YAML file.

The configuration prefix for these properties is defined as ai.koog.ollama. It is used to map these properties in the application configuration file.

This class is designed to work along with the OllamaLLMAutoConfiguration class to automatically initialize and configure the required beans for the Ollama client and executor.

Constructors

Link copied to clipboard
constructor(enabled: Boolean, baseUrl: String, retry: RetryConfigKoogProperties? = null)

Types

Link copied to clipboard
object Companion

Companion object for the OllamaKoogProperties class, providing constant values and utilities associated with the configuration of Ollama-related properties.

Properties

Link copied to clipboard
open override val baseUrl: String

The URL of the API endpoint for Ollama service.

Link copied to clipboard
open override val enabled: Boolean

Indicates whether the Ollama integration is enabled.

Link copied to clipboard
open override val retry: RetryConfigKoogProperties? = null

The retry settings for handling request failures.

Functions

Link copied to clipboard
open override fun toString(): String

Returns a string representation of the OllamaKoogProperties object.