simpleOpenAIExecutor

fun simpleOpenAIExecutor(apiToken: String, httpClientFactory: KoogHttpClient.Factory): MultiLLMPromptExecutor(source)

Creates a MultiLLMPromptExecutor instance configured to use the OpenAI client.

Return

A new instance of MultiLLMPromptExecutor configured with the OpenAILLMClient.

Parameters

apiToken

The API token used for authentication with the OpenAI API.

httpClientFactory

Factory used to create the underlying HTTP client.

fun simpleOpenAIExecutor(apiToken: String): ERROR CLASS: Symbol not found for MultiLLMPromptExecutor(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