Package-level declarations

Types

Link copied to clipboard

Implementation of MultiLLMPromptExecutor that supports OpenAI, Anthropic, and Google providers.

Functions

Link copied to clipboard
fun simpleAnthropicExecutor(apiKey: String, httpClientFactory: KoogHttpClient.Factory): SingleLLMPromptExecutor

Creates an instance of SingleLLMPromptExecutor with an AnthropicLLMClient.

fun simpleAnthropicExecutor(apiKey: String): ERROR CLASS: Symbol not found for SingleLLMPromptExecutor

Convenience overload that constructs the underlying client via its JVM no-factory entry point (resolves the default ai.koog.http.client.KoogHttpClient.Factory at call time). JVM and Android only.

Link copied to clipboard
fun simpleAzureOpenAIExecutor(baseUrl: String, version: AzureOpenAIServiceVersion, apiToken: String, httpClientFactory: KoogHttpClient.Factory): SingleLLMPromptExecutor
fun simpleAzureOpenAIExecutor(resourceName: String, deploymentName: String, version: AzureOpenAIServiceVersion, apiToken: String, httpClientFactory: KoogHttpClient.Factory): SingleLLMPromptExecutor

Creates an instance of SingleLLMPromptExecutor with an OpenAILLMClient configured for Azure OpenAI.

fun simpleAzureOpenAIExecutor(baseUrl: String, version: ERROR CLASS: Symbol not found for AzureOpenAIServiceVersion, apiToken: String): ERROR CLASS: Symbol not found for SingleLLMPromptExecutor
fun simpleAzureOpenAIExecutor(resourceName: String, deploymentName: String, version: ERROR CLASS: Symbol not found for AzureOpenAIServiceVersion, apiToken: String): ERROR CLASS: Symbol not found for SingleLLMPromptExecutor

Convenience overload that constructs the underlying client via its JVM no-factory entry point (resolves the default ai.koog.http.client.KoogHttpClient.Factory at call time). JVM and Android only.

Link copied to clipboard
fun simpleBedrockExecutor(awsAccessKeyId: String, awsSecretAccessKey: String, awsSessionToken: String? = null, settings: BedrockClientSettings = BedrockClientSettings()): SingleLLMPromptExecutor

Creates an instance of SingleLLMPromptExecutor with a BedrockLLMClient.

Link copied to clipboard
fun simpleBedrockExecutorWithBearerToken(bedrockApiKey: String, settings: BedrockClientSettings = BedrockClientSettings()): SingleLLMPromptExecutor

Creates an instance of SingleLLMPromptExecutor with a BedrockLLMClient. Uses the provided Bedrock API key to create a aws.smithy.kotlin.runtime.http.auth.BearerTokenProvider.

Link copied to clipboard
fun simpleGoogleAIExecutor(apiKey: String, httpClientFactory: KoogHttpClient.Factory): SingleLLMPromptExecutor

Creates an instance of SingleLLMPromptExecutor with an GoogleLLMClient.

fun simpleGoogleAIExecutor(apiKey: String): ERROR CLASS: Symbol not found for SingleLLMPromptExecutor

Convenience overload that constructs the underlying client via its JVM no-factory entry point (resolves the default ai.koog.http.client.KoogHttpClient.Factory at call time). JVM and Android only.

Link copied to clipboard
fun simpleMistralAIExecutor(apiKey: String, httpClientFactory: KoogHttpClient.Factory): SingleLLMPromptExecutor

Creates an instance of SingleLLMPromptExecutor with a MistralAILLMClient.

fun simpleMistralAIExecutor(apiKey: String): ERROR CLASS: Symbol not found for SingleLLMPromptExecutor

Convenience overload that constructs the underlying client via its JVM no-factory entry point (resolves the default ai.koog.http.client.KoogHttpClient.Factory at call time). JVM and Android only.

Link copied to clipboard
fun simpleOllamaAIExecutor(baseUrl: String = "http://localhost:11434", httpClientFactory: KoogHttpClient.Factory): SingleLLMPromptExecutor

Creates an instance of SingleLLMPromptExecutor with an OllamaClient.

fun simpleOllamaAIExecutor(baseUrl: String = "http://localhost:11434"): ERROR CLASS: Symbol not found for SingleLLMPromptExecutor

Convenience overload that constructs the underlying client via its JVM no-factory entry point (resolves the default ai.koog.http.client.KoogHttpClient.Factory at call time). JVM and Android only.

Link copied to clipboard
fun simpleOpenAIExecutor(apiToken: String, httpClientFactory: KoogHttpClient.Factory): SingleLLMPromptExecutor

Creates a SingleLLMPromptExecutor instance configured to use the OpenAI client.

fun simpleOpenAIExecutor(apiToken: String): ERROR CLASS: Symbol not found for SingleLLMPromptExecutor

Convenience overload that constructs the underlying client via its JVM no-factory entry point (resolves the default ai.koog.http.client.KoogHttpClient.Factory at call time). JVM and Android only.

Link copied to clipboard
fun simpleOpenRouterExecutor(apiKey: String, httpClientFactory: KoogHttpClient.Factory): SingleLLMPromptExecutor

Creates an instance of SingleLLMPromptExecutor with an OpenRouterLLMClient.

fun simpleOpenRouterExecutor(apiKey: String): ERROR CLASS: Symbol not found for SingleLLMPromptExecutor

Convenience overload that constructs the underlying client via its JVM no-factory entry point (resolves the default ai.koog.http.client.KoogHttpClient.Factory at call time). JVM and Android only.