simpleAnthropicExecutor

fun simpleAnthropicExecutor(apiKey: String, httpClientFactory: KoogHttpClient.Factory): SingleLLMPromptExecutor(source)

Creates an instance of SingleLLMPromptExecutor with an AnthropicLLMClient.

Parameters

apiKey

The API token used for authentication with the Anthropic LLM client.

httpClientFactory

Factory used to create the underlying HTTP client.

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

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.

See also